1
|
FILE* fopen (char* name, char* mode);
|
used to openning file with file name name
.
-
mode
- “r” : read
- “w” : write (will be overwrited), (make new file if it doesn’t exist and possible)
- “a” : append (make new file if it doesn’t exist and possible)
- “rb” : binary-read
- “wb” : binary-write (will be overwrited), (make new file if it doesn’t exist and possible)
- “ab” : binary-append (make new file if it doesn’t exist and possible)
-
getc
1
|
int putc (int c, FILE* fp);
|
1
|
#define getchar() getc( stdin )
|
1
|
#define putchar(c) putc( (c), stdout )
|
1
|
int fscanf (FILE* fp, char* format, ...);
|
1
|
int fprintf (FILE* fp, char* format, ...);
|