生成Excel文件
private static final String filePath="D:\";private static final String fileName="123.csv";public static void main(String[] args) {StringBuffer conValue = new StringBuffer();conValue.append("123,234,567\r\n");try {FileWriter writer = new FileWriter(filePath+fileName);writer.write(conValue.toString());writer.close();} catch (IOException e) {// TODO Auto-generated catch blocke.printStackTrace();}}