Posted: Sat May 02, 2009 1:53 pm Post subject: Records not reading correctly
I am supposed to create a program that will add a record to a previously existing file. My problem is that I have 4 pieces of data I want put in that file as a single record.
The record appears perfect when called from the class file to display the data.
However, when viewed with the viewer program the first piece keeps getting screwed up - it looks like characters from the previous record's piece 4 is being added to it. The second piece seems fine. The third and fourth pieces aren't appearing at all.
Now, now to add data you have to locate the end of the file to add the record to it. But I have tried this, as well as adding extra lines and the record is still not viewing correctly. If anything it either adds more or less characters from a previous record or simply throws in a few ??? marks.