将.txt数据转换为.dat数据 [英] convert .txt data to .dat data

查看:150
本文介绍了将.txt数据转换为.dat数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

下午好,



我有一个.dat(数据文件),我有.dat中的数据文件,我想将.dat文件数据转换为字符串(.txt)。我成功转换了它。

我的问题是如何将该字符串转换为数据文件(.txt文件数据到.dat文件数据)。



中的.dat文件具有这种形式的数据昀䟼竾ᩅ蜁䘑Ƃسم??耂䘖˨ཅ䘓ɚ孈^䏞͛꘨궅㰃䔋ϯماᢆ䟩Л퐌ᡃᄄ䞭ҕ텎ꅆ的匄䗐Ӵ쉲效ꔄ





任何人都可以帮助我如何将.txt数据转换为.dat数据







谢谢,

解决方案

没有这样的东西as .dat 数据。这只是一个文件扩展名,不再是。它可以是任何东西;没有关联的特定数据格式。



所以,现在你的问题没有定义,你的问题毫无意义。你需要在所有细节中指定数据格式。



-SA


你得到了昀䟼竾ᩅ蜁䘑Ƃسم??耂䘖˨ཅ䘓ɚ孈^䏞͛꘨궅㰃䔋ϯماᢆ䟩Л퐌ᡃᄄ䞭ҕ텎ꅆ匄䗐Ӵ쉲效ꔄ当你打开一个.dat文件,因为文件正在文本模式下打开。内容虽然相同,显示格式将根据您打开文件的格式而有所不同。即二进制文本,文本等。



但是我遇到了一个问题,你在这里询问了同样的问题,并在vb中为它提供了一个解决方案。这可能会有所帮助,但即使在那个代码中,他们遵循的方法也是如此从.txt文件中提取详细信息并使用CSng选项存储在.dat文件中。



.txt到.dat转换 [ ^ ]

我有xxx.data文件,带有这个符号昀䟼竾ᩅ蜁䘑Ƃ?? ?? ?? ?? ?? ??孈孈孈孈孈孈䏞䏞͛꘨궅㰃䔋ϯϯمЛЛЛЛЛ ᡃᄄ䞭ҕ텎ꅆ匄䗐Ӵ쉲效ꔄ



我转换这个数据转换成字符串中使用binaryreader.Now再次我想转换此字符串(assdfdsghyyfgjhfjkghkfh)(assdfdsghyyfgjhfjkghkfh)到昀䟼竾ᩅ蜁䘑Ƃسم??耂䘖˨ཅ䘓ɚ孈^䏞͛꘨궅㰃䔋ϯماᢆ䟩Л퐌ᡃᄄ䞭ҕ텎ꅆ匄䗐Ӵ쉲效ꔄ

如何将字符串转换为此符号。


Hi All,
Good Afternoon,

I have a .dat(data file), I have data in that .dat file, I want to convert that ,.dat file data to string(.txt). I converted it successfully.
My problem is how can I convert that string to data file (.txt file data to .dat file data).

The .dat file has this form of data 昀䟼 竾ᩅ蜁䘑Ƃﲰ…耂䘖˨ཅ��䘓ɚ孈⌃䏞͛꘨궅㰃䔋ϯﲈᢆ䟩Л퐌ᡃᄄ䞭ҕ텎ꅆ匄䗐Ӵ쉲效ꔄ


can anyone help me how to convert .txt data to .dat data



Thank&Regards,

解决方案

There is no such thing as ".dat" data. This is just a file extension, no more. It can be anything at all; there is no certain data format associated.

So, right now you problem is not defined, and your Question makes no sense. You need to specify data formats in all details.

—SA


You are getting 昀䟼 竾ᩅ蜁䘑Ƃﲰ…耂䘖˨ཅ��䘓ɚ孈⌃䏞͛꘨궅㰃䔋ϯﲈᢆ䟩Л퐌ᡃᄄ䞭ҕ텎ꅆ匄䗐Ӵ쉲效ꔄ" when you open a .dat file because the file is being opened in text mode. The contents though are same the format of display will be different based on which format you open the file in. ie binary, text etc.

However i came across a thred where the same question as you asked here was asked, and a solution was provided for it in vb. This might help but the thing is, even in that code, the method they followed it extract detail from .txt file and store in .dat file making use of CSng option.

.txt to .dat conversion[^]


I have xxx.data file with this symbols 昀䟼 竾ᩅ蜁䘑Ƃﲰ…耂䘖˨ཅ��䘓ɚ孈⌃䏞͛꘨궅㰃䔋ϯﲈᢆ䟩Л퐌ᡃᄄ䞭ҕ텎ꅆ匄䗐Ӵ쉲效ꔄ

I converted this data into string (assdfdsghyyfgjhfjkghkfh) using binaryreader.Now again I want convert this string(assdfdsghyyfgjhfjkghkfh)to 昀䟼 竾ᩅ蜁䘑Ƃﲰ…耂䘖˨ཅ��䘓ɚ孈⌃䏞͛꘨궅㰃䔋ϯﲈᢆ䟩Л퐌ᡃᄄ䞭ҕ텎ꅆ匄䗐Ӵ쉲效ꔄ
how can i convert string to this symbols.


这篇关于将.txt数据转换为.dat数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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