openFile closes after quit is safe to use?

Find quick help here to get you started with Hollywood
Post Reply
Bugala
Posts: 1178
Joined: Sun Feb 14, 2010 7:11 pm

openFile closes after quit is safe to use?

Post by Bugala »

As I am thinking of making this debuglog.txt, which would print to a file everytime it jumps to new function, i am checking that using this is safe.

It mentions in manual that it closes open files automatically after a quit. So this does mean that I can open a "debuglog.txt" file, and then write name of function to this file each time it jumps to a new function during execution, and when it then crashes at some point (supposing i encounter a bug), the file would then safely close itself, and i can use notepad to open that file and read its contents?
User avatar
airsoftsoftwair
Posts: 5443
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: openFile closes after quit is safe to use?

Post by airsoftsoftwair »

Yes, it is.
Post Reply