hello, I need to store the vectors to a file. Each will be like a record. After each record I write I need to close the stream because if the record is more then OutOfMemoryException will be thrown. I tried with ObjectOutputStream, I'm able to write records, but when I tried to read, after the first record it will give StreamCorruptedException. Can any one give me suggestion. Thanks in advance.