Java读文件写文件txt
1. 写文件 String filePath = System.getProperty(user.dir)+File.separator+files;//当前项目的运行目录/files,File.separator根据系统的不同,路径的分隔符也不同 String fileName = test.txt; File pathFile = new File(filePath); BufferedWriter out = null; //1:创建文件夹 if (!pathFile.ex
下载地址
用户评论