well, opencsv kinda works, exept for writing only one line at a time, deleting the previous information. if I want a csv like:
CAR, YEAR, MODEL
mazda,1996,model a
ferrari,1998, model b
so what i get is only the last line every time, no matter how much information I put in. the code is like:
try {
File traceFile = new File(((Context)this).getExternalFilesDir(null), FILE_NAME);
CSVWriter writer = new CSVWriter(new FileWriter(traceFile));
String[] entries = array_body.split("#");
writer.writeNext(entries);
writer.close();
}
catch (IOException e) {
e.printStackTrace();
}
and according to the tutorials and examples that I saw this code suppose to work, help please?
array_body is "part_a#part_b#part_c"