read infos from files

hello guys ..
i need to read some infos from a file .. like for example the name of a student , his ID number and his grade .. and when the user inputs the name i need to print his infos on the screen .. so how can i store the informations about the student in order to print it when needed ? any help is appreciated
The <fstream> standard header will be very handy for such a simple task.
Check these:
http://www.cplusplus.com/doc/tutorial/files/
http://www.cplusplus.com/reference/fstream/fstream/

Aceix.
Topic archived. No new replies allowed.