fscanf does not perform bounds checking. fgets is likely going to be the better choice. You can then use sscanf() to evaluate it.
more info
IBM TPF Product Information Center
fscanf - C++ Reference
fgets - C++ Reference
scanf vs fgets?
BTW one more thing, never use scanf for input, use cin. Google it up if u want to know why, too many reasons for me to type