package sc.file;
import java.io.File;
import java.io.IOException;
public class tureOrF2alse2 {
public static void main(String[] args)throws IOException {
method1();
}
public static void method1() throws IOException {
File f = new File("e:\\c.txt");
File f2 = new File("d:\\c.txt");
System.out.println(f.createNewFile()) ;
boolean g= f2.renameTo(f ) ; //怎么自动得到新的绝对路径 就不用更改了
System.out.println(f2.getAbsoluteFile());
System.out.println(g);
// System.out.println(f.delete()); // 我是想看看进没进入回收站 没有