📌  相关文章
📜  如果不存在 java 创建文件 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:38.743000             🧑  作者: Mango

代码示例2
File yourFile = new File("score.txt");
yourFile.createNewFile(); // if file already exists will do nothing 
FileOutputStream oFile = new FileOutputStream(yourFile, false);