bath标签代码

时间:2015-08-29 16:46:56
【文件属性】:

文件名称:bath标签代码

文件大小:525B

文件格式:TXT

更新时间:2015-08-29 16:46:56

解析cvs

package com.csv.test; import java.io.BufferedReader; import java.io.FileInputStream; import java.io.InputStream; import java.io.InputStreamReader; public class CvsInputTest { public static void main(String[] args) { try { //FileInputStream fis = new FileInputStream("D:/course/JavaProjects/JavaSE/chapter08/temp01");//绝对路径 InputStream inputStream = new FileInputStream("F:/2012.08.07卡惠数据/buz_2012-08-07 - 副本.csv");//绝对路径 InputStreamReader inputStramReader = new InputStreamReader(inputStream); BufferedReader reader = new BufferedReader(inputStramReader); try { int k =0; String tempString = ""; while((tempString = reader.readLine())!=null){ //System.out.println(tempString); String[] str ; str=tempString.split(","); tempString.split(","); //for(int i = 0;i


网友评论