I dont quite understand this part of the OpenOptions documentation:
One maybe obvious note when using append-mode: make sure that all data that belongs together is written to the file in one operation. This can be done by concatenating strings before passing them to write()
, or using a buffered writer (with a buffer of adequate size), and calling flush()
when the message is complete.
I don't understand wtat it means, logically everything should have a predictable result