Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Search and Delete a specific record from a CSV file

807589Jan 13 2009 — edited Jan 13 2009
Hi All,

I am new to java . I want to search for the records from CSV file and delete the row form the file.
Below is my Sample .csv

100||a100||1b100
200||b200||dc300
200||bg430||ef850
400||f344||ce888

Now I need some help in below requirements.
1.How to delete a record having value 200 and b200?
2.If record already exists how to update the existing record with new values?

Please share your ideas or give me some code snippet..

Thanks in Advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 10 2009
Added on Jan 13 2009
5 comments
2,763 views