Hi
I'm using fstream to log some messages to a file and there are some cases where it's important to flush the buffer to the file instead of letting it flush when the buffer is full. This works, it's just that along with the written parts of the buffer, it writes all this garbage to the file.
Is there an easy way to prevent this?
I'm using fstream btw
-neXius
I'm using fstream to log some messages to a file and there are some cases where it's important to flush the buffer to the file instead of letting it flush when the buffer is full. This works, it's just that along with the written parts of the buffer, it writes all this garbage to the file.
Is there an easy way to prevent this?
I'm using fstream btw
-neXius