如何为我的C#应用​​程序创建一个Project类型的东西? [英] How can I create a Project kind of thing for my C# application?

查看:69
本文介绍了如何为我的C#应用​​程序创建一个Project类型的东西?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何为我的应用程序创建一个项目类型的东西,其中可以包含多个文件,并且只能在我创建的应用程序中打开。



For例如。我的应用程序从表单上收集的数据生成了一些文本文件。

我想将所有这些文本文件存储为一个项目并保存它,以后可以再次加载到应用程序中以检索数据。 br />


我不想使用序列化概念。它不符合我的要求。



请建议我实现这个功能的好方法。



提前谢谢。

How can I create a project kind of thing for my application which can have multiple files in it and which can be opened only in my created application.

For eg. my application generated few text files from the data collected on forms.
I want to store all this text files as one project and save it which can be again loaded in the application later to retrieve the data.

I dont want to use serialization concept. It doesn't fit to my requirements.

Please suggest me some good way to implement this function.

Thanks in advance.

推荐答案

约翰内斯和理查德是对的 - 但另一种方法是使用ZIP文件并将现有的文本文件存储在那里。这将使他们保持在一起,如果有必要,他们可以用密码保护。

这里有一个指南,可能有所帮助:在.NET 4.5中轻松创建Zip文件 [ ^ ]
Johannes and Richard are right - but an alternative is to use a ZIP file and store you existing Text files in there. That would keep them together, and they could be secured with a password if necessary.
There is a guide here, which may help: Creating Zip Files Easily in .NET 4.5[^]


这篇关于如何为我的C#应用​​程序创建一个Project类型的东西?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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