About fstream

closed account (L3ApX9L8)
Hello again ^^
now, what would be the best way to create an fstream buffer, so that things are only flushed after a certain condition is met?

I suppose one way would be to create a temporal file in which to deposit things, but that would expensive fast...
Streams are already line-buffered. Furthermore, modern OSs have their own IO buffers and caches. There's no need to add even more buffers.
Topic archived. No new replies allowed.