如何编辑资源文件
我正在用 C# 开发一个程序,我需要使用集成资源文件,它是 .txt 文件 我需要在按下按钮时将数据保存到其中,假设客户端将按下按钮 然后值“1”被保存在程序资源文件中的txt文件中
i am developing a program in C# and i need to use the integrated resource file it is .txt file
i need to save data to it when a button is pressed , lets say the client will press a button
and then a value of "1" is saved in that txt file which is in the program resource files
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您完全错误地使用了资源。也就是说,您可以使用 更新资源。
我不知道它是否在 .NET 中公开,或者是否但是,您必须使用 PInvoke,因为它没有在 .NET 中公开。 这里一篇文章将演示它的用法。You're totally using resources wrong. That being said, you can change resources (add, delete, or modify) using UpdateResource.
I don't know if it's exposed in .NET or if yYou have to use PInvoke, however, as it's not exposed in .NET. Here's a post that will demonstrate it's use.