uniVocity / univocity-parsers

uniVocity-parsers is a suite of extremely fast and reliable parsers for Java. It provides a consistent interface for handling different file formats, and a solid framework for the development of new parsers.
918 stars 251 forks source link

writerow() writing in last line in append mode when file might don't have end line character #477

Open Tarun275 opened 3 years ago

Tarun275 commented 3 years ago

writerow() in append mode writing in last line instead writing in new line in few cases.

Writer fileWriter = new FileWriter(filePath, true);
CsvWriter writer = new CsvWriter(fileWriter, csvWriterSettings);
List<String> fieldValuesList = ..........;
csvwriter.writeRow(fieldValuesList);
csvwriter.close();