Reprint: https://www.cnblogs.com/saolv/p/7793379.html
Reprinted: 50265681
Reprint: https://www.cnblogs.com/gyrgyr/p/5774575.html
Reprint: Https://msdn.microsoft.com/en-us/library/yeby3zcb.aspx
1. opening of the file
Function Prototypes:
FILE *fopen ( constchar *filename, constChar * Mode ); *_wfopen ( const wchar_t *filename, const wchar_t *mode );
Parameter description:
FileName: File name
Mode: How to open a file
return value:
Success: Returns a pointer to the open file
Failed: returned null
Character meaning
────────────────────────────
"R" Open text file Read Only "W" Create text file only Write "A" supplement, if file does not exist then create a "r+" to open a text file read /write "w+" to create a text file read/write "A +" to open or create a file supplement "B" binary file (can be used with each of the above) "T" This file (the default)
C-language file manipulation functions