What specific problem are you having?

Do you know how to open a file? Read a file? String handling? What exactly are you having trouble with?

You also need to show what code you have, or...