public flush() as Void throws IOException:
Flushes buffered text to the underlying file.
try writer = FileWriter("events.log", append=true): writer.writeLine("started") writer.flush()