.dat文件扩展名 [英] .dat file extensions

查看:126
本文介绍了.dat文件扩展名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以使用c#?

或任何可以使我的.dat文件扩展名可读的外部工具帮助我进行.dat文件转换吗?

Can Anyone help me out in a .dat file conversion using c#?
or any external tool that can make my .dat file extension readable?

推荐答案

检查这些:

阅读.dat c#中的文件 [ ^ ]

使用C#读取.dat文件[ ^ ]
Check these:
Read .dat file in c#[^]
reading .dat file using C#[^]


我的Dat文件是一个机器生成的文件...我可以压缩它并发送给你的文件.. .mail给我你的电子邮件ID ...并看看它...如果可以恢复到可读的风格....我会很满意
My Dat File is a machine generated file... i can zip it and send u the file ...mail me ur email id ... and have a look at it ...if that can be retrieved back to readable style....I Would be great full


嗨Ibainsane,



我希望你不要假设.dat文件的exetension就像一个扩展名为.png的文件 - 其中文件扩展名与一个记录良好的标准格式相对应。它不是!



它通常用作某些程序生成的任何二进制数据的文件扩展名。我在旧时代中经常使用dat文件扩展名(现在我使用的是XML)。因此,如果我需要在二进制文件中存储一些值(读取和格式化文本文件需要空间和性能),我添加了文件Extensiondat,意思是数据。只有在已知上下文和格式的情况下,此类数据的含义才有用。这种临时格式现在经常被更标准化的方式所取代。 (XML,JASON,...) - 现在性能和空间便宜(呃)......



你知道文件的二进制格式吗? br />


-Yes(因为你有一个规范,或产生它的源代码,或至少知道哪个程序创建它。)

然后有很好的机会阅读数据。 (例如,使用 BinaryFormatter



- >否:您几乎没有机会阅读和解读它内容不知道格式。



结论:dat文件扩展名没有提示如何格式化文件中的数据,因此没有格式知识 - 我怕你迷路了。 (但是您可以使用十六进制编辑器查看文件中的数据 - 也许您可以猜到一些信息和格式)



很抱歉没有给出一个真正的答案,但从你的问题我不得不假设你可能需要了解一些基础知识。



亲切的问候



Johannes



顺便说一句。不要发布自己的答案,使用改进的问题或评论......
Hi Ibainsane,

I hope you don't assume that the .dat file exetension is something like a file with .png extension - where the file extension would correspond with a well documented, standard format for something. It isn't!

It's commonly used as file extension for any binary data that some programm produces. I used the dat file extensions in the "old days" a lot (nowadays I'd use XML). So, if I needed to store some values in a binary file (reading and formating textfiles costs space and performance), I added the file Extension "dat", meaning "data". The meaning of such data is only usefull if the context and formatting is known. These kind of "ad hoc" formatting is now often replaced with more standardized ways. (XML, JASON, ...)- performance and space is cheap(er) now...

So do you know the binary Format of the file?

-Yes (Because you have a spec, or the source code producing it, or at least know which programm created it.)
Then there is a good chance to read the data. (e.g using BinaryFormatter)

->No: There is hardly a chance you can read and interpret it's contents without knowledge about the format.

Conclusion: "dat" file extension doesn't give a hint how the data in the file is formatted, so without format-knowledge - I fear you a lost. (but you may have a look at the data in the file with a hex-Editor - maybe you can guess some of the information and the formatting)

Sorry for not giving a "real" answer, but from your question I had to assume you may need to know about some "basics".

Kind regards

Johannes

Btw. Don't post yourself answers, use improve question or comments...


这篇关于.dat文件扩展名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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