Luckily that is not very hard, are you familiar with fstream? http://www.cprogramming.com/tutorial/lesson10.html

When loading in the database, I might suggest defining a struct (or class) called student, and storing a list of these in an STL vector.