read data from a file, perform computation on the data, then print the result to another file.
This is a discussion on How do you..... within the C++ Programming forums, part of the General Programming Boards category; 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
If you take something apart and put it back together enough times, you will eventually have enough parts left over to build a second one.