将二进制文件转换为txt文件 [英] convert binary file to txt file

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

问题描述

我能完成这项任务吗?使用fred和fwrite?

Can I fullfill this task? Using fred and fwrite?

推荐答案

在文章< f1 ******************* *************** @ k13g2000hse。 googlegroups.com>,

xiao< li ********* @ gmail.comwrote:
In article <f1**********************************@k13g2000hse. googlegroups.com>,
xiao <li*********@gmail.comwrote:

>可以我满满的这个任务?使用fred和fwrite?
>Can I fullfill this task? Using fred and fwrite?



是的,如果您知道二进制文件的格式。通常,

但是,如果你使用

fprintf()或其中一个近亲而不是fwrite(),输出部分会更容易:

用fwrite()作为输出,你将不得不-somehow-做

所有二进制文本字符串格式化和输出缓冲区

管理; fprintf()旨在做那种格式化

和缓冲管理。

-

对于现代的spirt,没有什么是,或者可以正确地知道,除了相对和条件之外,还有b $ b。 - Walter Pater

Yes, if you know the format of the binary file. Typically,
though, the output portion would be easier if you used
fprintf() or one of its close relatives rather than fwrite():
with fwrite() for the output, you will have to -somehow- do
all of the binary to text string formatting and output buffer
management; fprintf() is designed to do that kind of formatting
and buffer management.
--
"To the modern spirt nothing is, or can be rightly known,
except relatively and under conditions." -- Walter Pater


xiao写道:
xiao wrote:

>

我可以满足这个任务?使用fred和fwrite?
>
Can I fullfill this task? Using fred and fwrite?



如果你能找到弗雷德。


-

[邮件]:查克F (cinefalconer at maineline dot net)

[page]:< http://cbfalconer.home.att.net>

尝试下载部分。

If you can find fred.

--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home.att.net>
Try the download section.


7月23日上午11点20分,CBFalconer< cbfalco ... @ yahoo.comwrote:
On Jul 23, 11:20 am, CBFalconer <cbfalco...@yahoo.comwrote:

xiao写道:
xiao wrote:

我可以填写这个任务吗?使用fred和fwrite?
Can I fullfill this task? Using fred and fwrite?



如果你能找到弗雷德。


-

[邮箱]:Chuck F (cinefalconer at maineline dot net)

[page]:< http://cbfalconer.home.att.net>

尝试下载部分。


If you can find fred.

--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home.att.net>
Try the download section.



哈哈,我在这里犯了一个错误,我的意思是恐惧......但似乎恐惧确实

不工作....

haha, I made a mistake here, I mean fread....but it seems fread does
not working....


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

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