File.flush

Writes the file's buffer to disk. Flushing is automatically performed when the file is closed. This means you don't need to call flush manually before closing a file using close. Still, calling flush can be used to ensure the data is safe even if the project crashes instead of being closed gracefully. Note: Only call flush when you actually need it. Otherwise, it will decrease performance due to constant disk writes.

struct File
@nogc nothrow
void
flush
()

Meta