java 往 文件中 写入数据 File file = new File("D:\\test\\data.json"); //file.createNewFile(); if (!file.exists()) { //file.mkdir(); try