• JAVA初始化文件代码


    //初始化路径
    File file = new File(SavePath);
                if (!file.exists()) {
                    file.mkdirs();
                }
     
    //初始化文件
    String filePath=SavePath+fileName;
                file = new File(filePath);
                if (!file.exists()) {
                    file.createNewFile();
                }
  • 相关阅读:
    c++作业2 9.22
    c++作业1 9.22
    c++练习题2
    c++练习题1
    10.10作业3
    10.10作业2
    10.10作业 1
    9.22作业5
    9.22作业4
    9.22zuo
  • 原文地址:https://www.cnblogs.com/caichaoxiang919/p/10980950.html
Copyright © 2020-2023  润新知