从文件中逐行阅读 [英] reading line by line from file

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

问题描述




我需要逐行读取一个文件。每行包含不同的数字

个字符。我使用fopen函数打开文件。是否有任何功能

逐行读取文件


问候,

Mani

Hi,

I need to read a file line by line.each line contains different number
of characters.I opened file using fopen function.is there any function
to read the file line by line

Regards,
Mani

推荐答案


pl **** ******@gmail.com 写道:


我需要逐行读取一个文件。一行包含不同的数字<字符。我用fopen函数打开文件。有任何函数
逐行读取文件
Hi,

I need to read a file line by line.each line contains different number
of characters.I opened file using fopen function.is there any function
to read the file line by line




查找`fgets() `。


-

BR,Vladimir



Look up `fgets()`.

--
BR, Vladimir


" Vladimir S 。奥卡写道:
"Vladimir S. Oka" wrote:
pl ********** @ gmail.com 写道:

我需要逐行读取一个文件。每行包含不同的字符数。我使用fopen函数打开文件。那里有
逐行读取文件的任何函数

I need to read a file line by line.each line contains different
number of characters.I opened file using fopen function.is there
any function to read the file line by line



查找`fgets()`。



Look up `fgets()`.




等等。可能最方便的是ggets,这是非标准的
,但是用标准C编写,可在以下位置获得:


< http://cffalconer .home.att.net / download / ggets.zip>


-

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

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

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

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

更多详细信息:< http://cfaj.freeshell.org/google/>

另见< http://www.safalra .com / special / googlegroupsreply />



Among others. Possibly the most convenient is ggets, which is
non-standard, but written in standard C, and available at:

<http://cbfalconer.home.att.net/download/ggets.zip>

--
"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/>
Also see <http://www.safalra.com/special/googlegroupsreply/>


CBFalconer认为:
CBFalconer opined:
" Vladimir S. Oka"写道:
"Vladimir S. Oka" wrote:
pl ********** @ gmail.com 写道:

我需要逐行读取一个文件。每行包含不同的字符数。我使用fopen函数打开文件。那里有
任何逐行读取文件的函数

I need to read a file line by line.each line contains different
number of characters.I opened file using fopen function.is there
any function to read the file line by line


查找`fgets()`。



Look up `fgets()`.



等等。可能最方便的是ggets,它是非标准的,但是用标准C编写,可从以下网址获得:

< http://cbfalconer.home.att.net/download /ggets.zip>



Among others. Possibly the most convenient is ggets, which is
non-standard, but written in standard C, and available at:

<http://cbfalconer.home.att.net/download/ggets.zip>




再次插入商品? ;-)


好​​!任何让世界摆脱困境的事情!


-

阅读:< http://clc-wiki.net/wiki/Introduction_to_comp.lang。 c>


我认为我是精神分裂症患者。我的一半是'b
b偏执,另一半是为了得到他。



Plugging your wares again? ;-)

Good! Anything to get world rid of getses!

--
Read: <http://clc-wiki.net/wiki/Introduction_to_comp.lang.c>

I think I''m schizophrenic. One half of me''s
paranoid and the other half''s out to get him.


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

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