import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.InputStreamReader;
public class test {
public static void main(String[] args) {
try {
FileInputStream file = new FileInputStream("D:\\ConfigGoods.csv");
InputStreamReader input = new InputStreamReader(file, "GB2312");
BufferedReader reader = new BufferedReader(input);
String line = null;
while((line=reader.readLine())!=null){
String item[] = line.split("''");
String[] last = item[item.length-1].split(",");
String option = "{'id':"+last[0]+",'text':'"+last[1]+"-"+last[2]+"'},";
System.out.println(option);
}
reader.close();
} catch (Exception e) {
e.printStackTrace();
}
}
}