posted 10 years ago
I'm currently using an ObjectOutputStream to write the contents of my vector to text file. The vector contains objects created from a class hierarchy which implements serializable. Since serializable objects create a binary-format file (which is unreadable), how can I go about using PrintWriter to write out all the objects my vector contains? I'm completely new to all of this, but If i could write a neatly formatted text file, where each object was written on a new line, that would be awesome. Could someone show me how?