文件写时不覆盖之前的内容

文件写时不覆盖之前的内容:

URL temp = JobLog.class.getClassLoader().getResource("");
File configFile = new File(temp.getPath() + "test/jobs.txt");
FileWriter out = new FileWriter(configFile,true);//第二个参数为true

 

你可能感兴趣的:(文件)