Deleting records

29 views
Skip to first unread message

Алексей Рачинский

unread,
Dec 28, 2014, 10:01:45 AM12/28/14
to csv...@googlegroups.com
Hi! Tell me please how i can delete or edit someone records in my csv file using java and javacsv library. Thank you!

shriop

unread,
Dec 28, 2014, 10:40:53 AM12/28/14
to csv...@googlegroups.com
I would suggest reading the file and writing it back into a new file. After you've read a line of values, you can change those values before writing them back out, or skip writing out that line altogether. You should be able to just combine the code samples at http://www.csvreader.com/java_csv_samples.php to accomplish this.

Bruce Dunwiddie
Reply all
Reply to author
Forward
0 new messages