Find a book with a thorough chapter on File IO, the Deitel books are the most thorough I've seen, read it, type in every example, run it, bend it, break it, fix it until you understand it completely,...