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("檔案已存在");
        }
    }
}
arrow
arrow
    全站熱搜

    黃彥霖 發表在 痞客邦 留言(0) 人氣()