摘要: public void reNameFile() { File file = new File( "C:\\folderA\\sample.text"); //注意\\的用法转移字符 File newFile = new File("C:\\folderB\\sample2.text"); bool 阅读全文
posted @ 2016-03-11 23:39 Lanyuxuan 阅读(2526) 评论(0) 推荐(0)
摘要: File类简单用法! [java] view plain copy print? [java] view plain copy print? import java.io.File; import java.io.IOException; public class TestFile { public 阅读全文
posted @ 2016-03-11 23:28 Lanyuxuan 阅读(317) 评论(0) 推荐(0)