| import java.io.*;
import java.util.*;
public class CLCOMP { public static void main(String[] args) {
String filePath = "商品分類マスタ.csv";
String line [] = {""};
myFile myObj = new myFile();
if ( !myObj.open( filePath ) ) {
System.out.println( filePath + " を open できません" );
return;
}
StringTokenizer st = null;
while ( myObj.get( line ) ) {
st = new StringTokenizer( line[0],"," );
while ( st.hasMoreTokens() ) {
System.out.print( st.nextToken() );
if ( st.hasMoreTokens() ) {
System.out.print("|");
}
}
System.out.println("");
}
myObj.close();
} }
| |