将数据表复制到二进制文件中 [英] Copy the datatable in a binary files

查看:57
本文介绍了将数据表复制到二进制文件中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我正在开展一个项目。目前我有一个由大型.csv文件填充(链接)的数据表。我想将内容带到DataTable并将其传输到二进制文件中。此外,我将进行的任何更改都将保存在此二进制文件中。



目标是我使用.csv文件的更安全文件,也就是说内容不会显示为文本编辑器。 (我知道我可以使用数据库,但是现在我仍然在第1步,正在处理文件!:))



如果没有,还有其他类型哪个文件可以提供除二进制文件以外的某些安全性?如果是,那是哪一个?



谢谢大家!



我尝试了什么:



简而言之,我做了几次互联网搜索,我没有发现任何结论。我相信我能做到。但我还没弄明白怎么做!所以,是的,我还没有编码。我仍在搜索,但如果有人可以帮我开始链接或算法,那将非常好!

解决方案

数据表支持将内容写入XML文件。然而,这可能比CSV更具可读性。



使内容不那么容易阅读的一种方法是压缩XML文件。另一种选择是加密内容或两者兼而有之。如果感兴趣,请查看使用AES加密数据集,包括压缩 [ ^ ]

Hi guys,

i'm working on a project. Currently I have a Datatable which was filled (linked) by a large .csv files. I would like to take the contents to DataTable and transfer it in a binary file. In addition, any changes I will make will be saved in this binary file.

The goal is that I use a "more secure" file that the .csv file, that is to say that the content is not displayed as a text editor. (I know I can use a database, but for now Im still in step 1, be working with files! :) )

If not, is there any other type of file that would offer me a "certain safety" other than the binary file? If yes, which ones?

Thanks guys!

What I have tried:

In short, I did several internet search, I found nothing conclusive. I'm sure i can do it. But I have not figured out how! So yeah, i didnt code anything yet. Im still searching but if anyone can help me start with a link or an algorithm, it would be really nice!

解决方案

A data table supports writing the content into a XML file. However that could be even more readable than CSV.

One way to make the content not so easy to read could be to compress the XML file. Another option would be to encrypt the content or do both. If that would be of interest, have a look at Encrypting a dataset using AES, including compression[^]


这篇关于将数据表复制到二进制文件中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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