Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to delete from the middle of the file using object streams  RSS feed

 
subin dani
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
i am stuck with a problem.
how do u delete a particular object from a file using object streams?
i have added the objects to the file in a serialized form like
Object[0][0] = new Class(a0,b0,c0);
Object[0][1] = new Class(a0,b1,c1);
Object[0][2] = new Class(a0,b2,c2);
Object[1][0] = new Class(a1,b0,c0);
Object[1][1] = new Class(a1,b1,c1);

I am able to delete 'a0' but how can i delete 'b0' or 'b1'??
i require urgent help
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!