klyn.io.FileWriter.flush
method
public flush() as Void throws IOException:
Description

Flushes buffered text to the underlying file.

Throws
  • IOException if the writer is closed or the flush fails.
Example
try writer = FileWriter("events.log", append=true):
writer.writeLine("started")
writer.flush()