且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

文本文件目录设置

更新时间:2023-02-20 11:00:39

永远不要将文件保存到与应用程序执行文件夹有关的任何内容中:它会给巨大的生产中的问题,因为您的应用程序几乎肯定会安装在Program Files分支中,出于安全原因,对这些文件夹的写入权限受到严格限制。



相反,使用推荐数据文件存储位置之一:我应该在哪里存储我的数据? [ ^ ]应该有所帮助。
Never save files into anything to do with your application execution folder: it will give huge problems in production because your app will almost certainly be installed in the "Program Files" branch, and write access to those folders are severely limited for security reasons.

Instead, use one of the "recommended" data file storage locations: Where should I store my data?[^] should help.