import file.TextFile; // 汎用入出力を行うために必要 // ファイルをCSV 読み込みモードで開く TextFile file = openTextFile( "text.csv", "rcsv" ) ; // コメント行の行頭文字を # に設定 setCommentLineCode( file, "#" ) ; // ファイル行数をカウント(コメント行は読み飛される) int n = countln( file ) ; // 各行の値を格納する配列 string line[3]; for(int i=0; i