• Post Reply Bookmark Topic Watch Topic
  • New Topic

problem writing to and reading from file

 
Anne Bar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I hope someone can help me, and that this is the correct place to post this. I�m trying to create an array of objects and write them to a file.

The objects go into the array just fine. When I go to write to the file; however, the only thing I get is gibberish.

So when I attempt to display the contents of the file, I get a classcastexception.

Here�s the code for the three methods (the exitAndWrite method is in a separate class):



I'm more than a bit lost right now, and any help provided would be greatly appreciated!
 
Anne Bar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks,

If you're reading this: thanks for looking!

I've actually solved the problem. I was on the wrong track completely (I'm still a bit of a newbie), and now things are flowing much more smoothly.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!