go here:

http://www.stud.fim.ntnu.no/~oystesk/CPP/htm/ch16.htm

and read the part about using files. The language is a simple as I've seen. You can also piece together a reasonable approach by searching this board.