I am completely agree with you. Opening file in append more corrupts file.
I tried it.
Thanks for your suggestions.
Type: Posts; User: prashant.6388
I am completely agree with you. Opening file in append more corrupts file.
I tried it.
Thanks for your suggestions.
Hey guys thanks for your answers.
What andbin said is correct each time it adds header before adding object.
But i figured out that this happens because of following line of code....
First and second code snippet i have given for inserting and reading object works fine.
I am using following code to run it.
public static void main(String args[]) throws IOException,...
Hi,
I am trying to put objects in a file and later want to read them.
I am using following code to add objects in file
//for adding object in file
public void addObject() throws IOException,...