C++ Programming/Code/Standard C Library/Functions/fscanf
< C++ Programming < Code < Standard C Library < Functionsfscanf
Syntax |
#include <cstdio>
int fscanf( FILE *stream, const char *format, ... );
|
The function fscanf() reads data from the given file stream in a manner exactly like scanf(). The return value of fscanf() is the number of variables that are actually assigned values, including zero if there were no matches. EOF is returned if there was an error reading before the first match.
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.