Precautions for reading and writing FILE files

Just to put it bluntly, if you don't call fclose to close the file, maybe your program won't crash. There will be no exceptions. But your fwrite() won't work. Your files will always be in 0kb state. After finding out the reason, I feel like a fucking idiot.

Guess you like

Origin blog.csdn.net/bberdong/article/details/51831454
Recommended