Here are a couple of nice sites with examples for fscanf and other similar functions:
A good example for how to check for EOF, with a special extra treat on how to do fscanf without using fscanf:
http://stackoverflow.com/questions/3764014/how-do-you-read-scanf-until-eof-in-c
Gorgeous tabular function definition with a nice example section at the end:
http://www.cplusplus.com/reference/clibrary/cstdio/fscanf/
The same thing for sscanf:
http://www.cplusplus.com/reference/clibrary/cstdio/sscanf/