Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Records not reading correctly
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
cat8864




PostPosted: 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.

Could someone please help me?



VideoGames.java
 Description:

Download
 Filename:  VideoGames.java
 Filesize:  8.75 KB
 Downloaded:  180 Time(s)


games.java
 Description:

Download
 Filename:  games.java
 Filesize:  3.81 KB
 Downloaded:  97 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 1 Posts ]
Jump to:   


Style:  
Search: