openFile closes after quit is safe to use?

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

openFile closes after quit is safe to use?

Post by Bugala » Tue Feb 02, 2016 3:58 pm

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: 2537
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

Re: openFile closes after quit is safe to use?

Post by airsoftsoftwair » Tue Feb 02, 2016 6:25 pm

Yes, it is.

Post Reply