如何使用Windows应用程序C#.net 2003从dat文件写入/读取? [英] How to Write/Read from dat file by using C#.net 2003 for windows app?

查看:99
本文介绍了如何使用Windows应用程序C#.net 2003从dat文件写入/读取?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,
谁能知道如何使用Windows应用程序对.DAT文件进行文件操作.我正在创建一个应用程序,可以在其中将一些用户信息存储到该DAT文件中.而且我也可以从该.DAT文件中检索相同的信息.
我的主要目的是保护用户的信息,以使他无法直接读取数据.
任何人都可以拥有与此相关的信息.

谢谢与问候
Balkrishna Raut

Dear all,
can anyone know about how to do the file operation on the .DAT file using windows application. i am creating an application where i can store the some user information into to that DAT file. And also i ma retrieving the same information from that .DAT file.
My main aim is to secure the information from user so that he can not read the data directly.
can anyone having information related with the same.

Thanks & Regards
Balkrishna Raut

推荐答案

如果可以选择如何存储数据以及采用哪种格式,则可以选择设置一个可以序列化的对象并从持久存储反序列化.显然,这将使用数据创建一个XML文件,如果您想保护内容,可以通过某种形式的加密进行传递.

这是一个例子;
c-serializing-deserializing-a-des-encrypted- file-from-a-stre [ ^ ]
If you have the choice of how to store the data and what format it takes, then one option might be to set up an object that can be serialised and deserialised to/from persistent storage. This would obviously create an XML file with the data, which you could pass through some form of encryption if you want to protect the contents.

Here is an example;
c-serializing-deserializing-a-des-encrypted-file-from-a-stre[^]


这篇关于如何使用Windows应用程序C#.net 2003从dat文件写入/读取?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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