#include <stdio.h>

int fscanf( FILE* file_pointer, char* string, ...);

This function reads in formatted input from the file referenced by fi le_pointer. The newly converted data is stored at addresses given by the arguments that foll ow string, which contains the format specifications for the data b eing read. If the end of the file is reached before any conversion, fscanf() returns EOF; otherwise, it returns the number of items read and stored.

See also: scanf().

Back to Essential C Functions.

Log in or register to write something here or to contact authors.