如何在资源C#中处理文本文件 [英] How to handle textfile in resources C#

查看:187
本文介绍了如何在资源C#中处理文本文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想保存并加载我在资源中制作的文本文件,请告诉我怎么做?!

谢谢



我尝试了什么:



处理文本文件以保存hdd serial with algorithm并创建密码以停止程序被复制

i want to save and load text in textfile that i made in resources, please tell me how to do it?!
thanks

What I have tried:

handle textfile to save hdd serial with algorithm and create password to stop program being copied

推荐答案

您可以将文本文件保存到资源中 - 这很容易,我会为每个项目进行修订历史记录。

但是。 ..您不能轻易地将不同的文本文件放入程序集的每个安装中,而不是为每个单独的安装重建应用程序。这很麻烦,而且很危险 - 因为你可以轻易地结束你不知道的变化。

相反,创建许可文件并将其存储在合理的地方 - 不要t尝试将其作为EXE文件的一部分。 我应该在哪里存储数据? [ ^ ]可能有所帮助 - 如果您使用应用程序GUID作为路径的一部分,它不容易找到。
You can save a text file into the resources - it's easy, and I do it with every project for revision history purposes.
But...you can't easily put a different text file into each installation of the assembly, not without rebuilding the application for each separate installation. That's messy, and dangerous - because you can easily end up with changes going out that you don't know about.
Instead, create the licence file and store it in a "sensible place" - don't try to make it a part of the EXE file. Where should I store my data?[^] may help - and if you use the application GUID as part of the path, it won't be easy to find.


这篇关于如何在资源C#中处理文本文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆