Reading File or fscanf() function:-
The fscanf() function is used to read set of characters from file. It reads a word from the file and returns EOF at the end of file.C fscanf function reads formatted input from a file.
This function is implemented in file related programs for reading formatted data from any file that is specified in the program.
Its return the number of variables that are assigned values, or EOF if no assignments could be made.
Syntax:- fscanf(FILE *stream, const char *format, ...)
Comments
Post a Comment