Read and Write CSV File using Java
问题 I have a CSV log file and it contains many rows like this: 2016-06-21 12:00:00,000 : helloworld: header1=2;header2=6;header=0 I want to write them to a new CSV file. public void readLogFile() throws Exception { String currentLine = ""; String nextLine = ""; BufferedReader reader = new BufferedReader(new FileReader(file(false))); while ((currentLine = reader.readLine()) != null) { if (currentLine.contains("2016") == true) { nextLine = reader.readLine(); if (nextLine.contains("helloworld") ==