File.flush

void flush() @trusted

Flushes the C FILE buffers.

Calls fflush for the file handle.

Throws

Exception if the file is not opened or if the call to fflush fails.