Example: fscanfInput-Output Functions

Reads formatted input from a stream.

int fscanf( FILE *file_pointer, const char *format string [, args]);

file_pointer A pointer to a file.
string One or more formatting characters.
args One or more optional print arguments.

For fscanf details, refer to your C language documentation.

Return Values

The number of items successfully read. This count does not include any ignored fields. If EOF is returned, an error has occurred before the first assignment could be performed.