package test;
import java.io.File;
public class FileTest {
public static void main(String[] args) throws Exception {
File f = new File("C:/A");
if(f.createNewFile()){
System.out.println("建立檔案成功");
}else{
System.out.println("檔案已存在");
}
}
}
全站熱搜