Top index Wirbel home

fs::flush

file.flush() - flush pending data to file

write buffers all output that is not going to a TTY until a certain amount of data has been written or until the file is closed. file.flush() force an immediate writing of the data to the file. Note that this does not mean the the data synchronized to the underlying hardware, but just that it is appearing in the file for other processes.