+ 1
Is the fclose() function optional or should be writen when creating single file.
Understanding the using of fopen and fclose
3 Réponses
+ 3
Always close the files you open. As long as a file is opened, it can't be used by other programs.
0
Additional, an open file pointer to a file will stay in memory, hence earing up your RAM on large scaled projects.
0
a file opened and not being used wastes memory, close all files when not in use!!