I have an application that reaches out and gathers stats, if those stats are out of bounds, it logs them.
Currently I have a string builder thats accumulates all logs durring the session and writes them all to the file at the end. This is a memory hog. Is it ok to open a text file every 2-4 seconds for 6 hours.
Currently I have a string builder thats accumulates all logs durring the session and writes them all to the file at the end. This is a memory hog. Is it ok to open a text file every 2-4 seconds for 6 hours.
Comment