BufferedReader reader = new BufferedReader(new InputStreamReader( new FileInputStream(file), DEF_CSV_FILE_ENCODING)); buf.append("<table class='table'>"); // 最終行まで読み込む String line = ""; int lineNumber = 0; while ((line = reader.readLine()) != null) { StringTokenizer st = new StringTokenizer(line, ","); while (st.hasMoreTokens()) { String item = st.nextToken(); } }