import java.io.*;
public class CLCOMP { public static void main(String[] args) {
File curDir = new File( (new File("")).getAbsolutePath() + "\\" );
File newFile = new File( curDir.getAbsolutePath() + "\\空の新規ファイル.txt" );
try {
newFile.createNewFile();
}
catch( Exception e ) {
}
// 終了時にファイルを削除する
newFile.deleteOnExit();
} }
|