read data from a file, perform computation on the data, then print the result to another file.
read data from a file, perform computation on the data, then print the result to another file.
You should probably check out the tutorials on this site. They explain it better then I could. Specifically the one over File I/O.
http://www.cprogramming.com/tutorial/lesson10.html
David