MapApp.java 文件源码

java
阅读 35 收藏 0 点赞 0 评论 0

项目:geomapapp 作者:
public void updatePortal(String portalUpdatedTime) throws IOException {
    // delete text file
    if (portalSelectFile.exists()) {
        portalSelectFile.delete();
    }

    // delete old .dat file
    if (portalSelectFileOld.exists()) {
        portalSelectFileOld.delete();
    }

    // make and update new file
    menusCacheDir.mkdirs();
    portalSelectFile.createNewFile();

    // Put in new values just mb for now from server
    BufferedWriter outMB = new BufferedWriter( new FileWriter(portalSelectFile, false) );
    outMB.write(portalUpdatedTime);
    outMB.close();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号