代码:

File file = new File("src\\Map.txt");
try {
file.createNewFile();
} catch (IOException e) {
e.printStackTrace();
}