fopen & fclose
#6

No, the file stays open. I'm not 100% sure on the side effects of not closing the file, but you should always close the file if you don't plan on using it. (I'm talking about immediate use, not a "Oh, I will use it later, so I'll keep it open")

You also have ftemp, which can be used to create files that are deleted upon closing them.

Either way, you should always close the file after you're done with it, instead of leaving it open for later use.
Reply


Messages In This Thread
fopen & fclose - by BiosMarcel - 24.02.2016, 08:28
Re: fopen & fclose - by K0P - 24.02.2016, 08:48
Re: fopen & fclose - by BiosMarcel - 24.02.2016, 08:51
Re: fopen & fclose - by K0P - 24.02.2016, 08:55
Re: fopen & fclose - by BiosMarcel - 24.02.2016, 09:09
Re: fopen & fclose - by Threshold - 24.02.2016, 09:24
Re: fopen & fclose - by BiosMarcel - 24.02.2016, 11:47

Forum Jump:


Users browsing this thread: 4 Guest(s)