package hello;
import java.io.File;
import java.io.IOException;
public class AA {
public static void main(String[] args) {
String exportpath = "D:\AA\";
String fileName = "孟子乡.txt";
File file = new File(exportpath,fileName);
try {
file.createNewFile();
} catch (IOException e) {
e.printStackTrace();
}
}
}
放到C盘执行方便:
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)