import java.io.File;
import java.io.IOException;
public class CreateFile {
public static void main(String[] args) throws IOException {
File file = new File("cpyFile2");
File file1 = new File("src/test.txt");
if (file.compareTo(file1) == 0)
System.out.println("文件路经一致!");
else
System.out.println("文件路经不一致!!!!");
}
}