I'm using CsvReader/CsvWriter to read and write my data to csv files. And I have a question about appending lines of data to other certain lines.
Lets say I have some data already saved, now I open my other program which has more info that I would like to add to that same line.
This program has textfields that add to a table, then when I click save it takes the information from the table and saves it to a separate csv file. I'm planning on making it save that info in the first csv file so that I can read all the information at one time.
So in short, is there a way to make my program append (add on) my new data to the old csv file in a specific lines?
When I read the info from file1.csv, I split it into columns like this:
String[] values = viewObject.split("," , 3);
dataA = values[0];
dataB = values[1];
dataC = values[2];
Perhaps by throwing something like the following in?
if (dataAtextField == dataA) {
// make csv writer append to that line somehow
}
Any ideas or helpful hints?