Objectives :
- myFile_fgetc1.cpp
reading text file with fgets and fgetc
- comparing these functions
int fgetpos(FILE *stream,fpos_t *pos );
int fgetc(FILE *stream );
char *fgets( char *str, int n,FILE *stream };
- properties of these functions
fgets : builds a string from a stream.
fgetc: Reads a character from a stream.
- Code:
myFile_fgetc1.txt
|