Originally posted by John Lockheart:
There is no error, it compiles...although i do get a warning, "java uses unchecked or unsafe operations"...but I had that before. I think it's because I have a factory method. I use it to create objects according to input by the user. Anyways, the file I try to write to isn't even created after i run the program, and If i create a blank txt file and name it accordingly, nothing gets written to it. I'm stumped.
Works for me... created test vector, with a bunch of strings, wrote the vector out to the object output stream, closed the file, open the file for reading, read the vector back via object input stream, printed it out to confirm it. The file is definitely created, and the data is stored correctly, as I was able to read it back in.