I am trying to write a program to read an arbitrary, but fixed number of input records from a file. I then want it to put or print this information read into another file. How would I go about doing this?
Say for example I have a file called input.dat and I want it to read the info. from that file and then put it into another file called output.dat.