most efficient way to write a log file?
Posted on 1998-12-17
I need to write text to a log file. I'm always appending to the end of it. I'm on an NT system. What is the most efficient way to do this? CFile? CStdIoFile? ofstream? I'd like to write to the file possibly a few times per second, and would definitely like to flush it to disk from time to time (every 5-60 seconds).