I tried to search through the web, but not get the answer for my problem. I have a csv file with a line: "Good morning" he said. My program just reads the text from file and print out:
BufferedReader in = new BufferedReader(new FileReader("XXXX/myfile.csv"));
String line;
while ((line = in.readLine()) != null) {
System.out.println(line);
}
However, the output has more quotation marks than the original:
"""Good morning"" he said."
Can you tell me how to escape those quotation marks so that it prints out as in the file?
You have a CSV file, I doubt your field delimeter for that CSV file is
". This extra quotes will be saved in the CSV file, but wont show up when you open it using Excel or other spreadsheet type program. Check it by opening in a text editor like notepad and see.