no point in collecting samples in a vector, then writing them. i can write them on the fly, leveraging the fact that fwrite() and fputs() already provide buffering (and file locking) under the hood. the only rule is that each sample must be written in a single stdio function call (to leverage the embedded locking).
no point in collecting samples in a vector, then writing them. i can write them on the fly, leveraging the fact that
fwrite()
andfputs()
already provide buffering (and file locking) under the hood. the only rule is that each sample must be written in a single stdio function call (to leverage the embedded locking).