Skip to main content
gamedev.net
๐Ÿ”’ Locked

debug and log file

Started by ibolcina Nov 7, 2002 at 2:54 PM 1 replies 200+ views
Original Post
ibolcina
ibolcina
Hi. I have create log system. It uses file debug.txt in which function "void debug(string in)" writes lines of information. The problem is: if application crashes, i have (??) to close this file before this happens, otherwise stuff gets lost. So everytime I call debug, I have to open file, write stuff in, and close it. This is very time consuming. Any suggestions? Are there any log libraries available for this? bye and thanx, ivan
Glyph
Glyph
You can probably flush the file stream and not worry about closing it... should work fine for a text file. Good luck!

-Glyph

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.