Java 流-----File 文件操作、文件夾操作

File類 概念:代表物理盤符中的一個文件或者文件夾(也叫目錄) 介紹一些方法: createNewFile() // 創建一個新文件 mkdir()  //創建一個新目錄 delete() //刪除文件或空目錄 exists()  // 判斷這個文件是否存在 getAbsolutePath() // 獲取文件的絕對路徑 getName () //獲取名字 getParent() //獲取文件的父
相關文章
相關標籤/搜索