aspose file tools
The moose likes Beginning Java and the fly likes Trouble streaming objects to file Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Trouble streaming objects to file" Watch "Trouble streaming objects to file" New topic
Author

Trouble streaming objects to file

Jason Rod
Greenhorn

Joined: Apr 13, 2006
Posts: 14
I am trying to stream an arrayList from another class and write it to file. The code has no errors but nothing is being written to the file either. The file name is "Accounts.txt". Here is the code:



I don't know if that code is even right, but any help would be greatly appreciated. Thanks in advance.
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Is the file actually created and empty? Or won't it even just be created? Do you also know where the file actually would be written? (the system path).


Code depot of a Java EE / JSF developer | JSF / Eclipse / Tomcat kickoff tutorial | DAO kickoff tutorial | I ♥ Unicode
Jason Rod
Greenhorn

Joined: Apr 13, 2006
Posts: 14
Problem solved, found out that my problem was with the .txt file I was trying to write to, Thanks for the response though.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Trouble streaming objects to file
 
Similar Threads
Why not its ClassCastException?
private(?) writeObject/readObject
serialization + no valid constructor
i/o with serilizable and junit test
runtime exception