文本文件就像
"Name","Salary",
"Bernard,"200000.00"
BufferedReader br = new BufferedReader(new FileReader("file.txt"));
String line = br.readLine();
String[] splitLine = line.toString().split(",");
for (String splitValue: splitLine) {
System.out.println(""+splitValue);
}
我要显示
Name Salary
Bernard 200000.00