如何停止阅读文件? [英] How to stop reading a file?

查看:95
本文介绍了如何停止阅读文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想知道如何停止在C中读取文件(例如,一个Hex

文件)没有''EOF''?

Hi All,
I want to know tht how can one Stop reading a file in C (e.g a Hex
file)with no ''EOF''?

推荐答案

siliconwafer写道:
siliconwafer wrote:
我想知道怎样才能停止阅读C中的文件(例如Hex文件)没有''EOF''?
I want to know tht how can one Stop reading a file in C (e.g a Hex
file)with no ''EOF''?




查找feof()。


Arne


-

[--- PGP键FD05BED7 --- http://www.root42.de/ ---]



Look up feof().

Arne

--
[--- PGP key FD05BED7 --- http://www.root42.de/ ---]


siliconwafer写道:
siliconwafer wrote:

我想知道怎样才能停止读取C中的文件(例如一个没有'EOF'的
Hex文件)?

I want to know tht how can one Stop reading a file in C (e.g a
Hex file)with no ''EOF''?




你在哪里获得如此大的磁盘驱动器?谁把无尽的文件

放在上面?他们使用了什么软件。他们从哪里获取数据

写入文件?


-

"如果你想发布一个通过groups.google.com进行跟进,不要使用

破损的回复链接在文章的底部。点击

" show options"在文章的顶部,然后点击

回复在文章标题的底部。 - Keith Thompson

更多详情请见:< http://cfaj.freeshell.org/google/>



Where did you get such a big disk drive? Who put the endless file
on it? What software did they use. Where did they get the data to
write to the file?

--
"If you want to post a followup via groups.google.com, don''t use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson
More details at: <http://cfaj.freeshell.org/google/>


2005年12月30日04:06:09 -0800,在comp.lang.c,siliconwafer

< sp ********* @ yahoo.com>写道:
On 30 Dec 2005 04:06:09 -0800, in comp.lang.c , "siliconwafer"
<sp*********@yahoo.com> wrote:
大家好,
我想知道如何停止读取C中的文件(例如Hex文件)没有''EOF ''?
Hi All,
I want to know tht how can one Stop reading a file in C (e.g a Hex
file)with no ''EOF''?




停止调用fread()?关闭文件? :-)

但是,请仔细阅读feof()。

Mark McIntyre

-


---- ==通过Newsfeeds.Com发布 - 无限制 - 无限制 - 安全使用网新闻== ----
http://www.newsfeeds.com 世界排名第一的新闻组服务! 120,000多个新闻组

---- =东海岸和西海岸服务器农场 - 通过加密实现全隐私= ----



Stop calling fread() ? close the file? :-)
Seriously however, read up on feof().
Mark McIntyre
--

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----


这篇关于如何停止阅读文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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