通过C#读取.dat数据库 [英] Read .dat database via C#

查看:475
本文介绍了通过C#读取.dat数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有.dat文件数据库.

如果我尝试通过BinaryReader进行阅读,则会收到类似这样的文本-"»@ВјB?& A"AёBy@ .

我该如何解决?

我找不到产生它的程序,但被丰田汽车目录使用.
我试图通过Notepad ++打开此文件并获取类似的文本
http://imageshack.us/photo/my-images/137/capturexzj.png/ [ ^ ]

I have .dat file database.

If I try to read via BinaryReader, I get text like that - "»@ВјB&A"AёBy@".

How can I fix that?

I cant find what program produced it, but it used by Toyota car catalog.
I tried to open this file by Notepad++ and get text like that
http://imageshack.us/photo/my-images/137/capturexzj.png/[^]

推荐答案

这里有一个问题:您使用哪种.DAT格式?

不幸的是.DAT被...以及...几乎每个人都用作文件扩展名.
这意味着它可以包含从CSV数据到完全专有的二进制文件的任何内容.

您能找到产生它的程序吗?
There is a problem here: which .DAT format do you have?

Unfortunately .DAT was used as a file extension by...well...pretty much everybody, really.
Which means it can contain anything from CSV data to fully proprietary binary files.

Can you find out what program produced it?


.dat代表数据",它是用于任何类型(通常)二进制数据的完全通用的扩展名.不幸的是,文件内容本身似乎没有可人工阅读的标头,即使它提供了由什么应用程序产生的线索.

您将需要找到产生它的程序,并希望它有一些文档来告诉您文件格式,或者您必须对格式进行逆向工程,或者您必须让Toyota向您提供数据.更好的方式.
.dat just stands for ''data'', it''s a completely generic extension used for any kind of (usually) binary data. Unfortunately it appears that the file content itself doesn''t have a header which is human readable even in so far as to give a clue about what application produced it.

You will need to either find the program that produced it and hope that there is some documentation for it which tells you the file format, or you will have to reverse engineer the format, or you will have to ask Toyota to provide the data to you in a nicer way.


这篇关于通过C#读取.dat数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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