To rename (or move) a file, call the method renameTo() on the File class. Here is a simple example: File file = new File("c:\\data\\input-file.
確定! 回上一頁