如何使用C#从* .dat文件写入/读取? [英] How to Write/Read from *.dat file by using C#?

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

问题描述

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

谢谢

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 am 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

推荐答案

您可以数据库 [ ^ ]或普通文件 [ System.Security.Cryptography [
You can use encrypting and decryption[^] for securely store your information. you can use database[^] or normal file[^] to store data ones you encrypt.
check System.Security.Cryptography[^], it provides cryptographic services, including secure encoding and decoding of data, as well as many other operations, such as hashing, random number generation, and message authentication. For more information


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

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