读取文本文件中的某些行 [英] Reading Certain lines in a text file
本文介绍了读取文本文件中的某些行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道如何用VB6在文本文件的特定行中读写。
例如。
第一行
第二行
第三行
我不想通读所有行,我只想读取某一行作为输入并写入某行作为输出。
谢谢
Gobble。
解决方案
用文本文件不能这样做.......
< blockquote>这是从文件中读取某些行的代码。至于写入文件中的某一行,是否要写入您正在阅读的文件?给我们举个例子。
展开 | 选择 | Wrap | 行号
订阅。
Hi,
I would like to know how i could read and write in a specific line in a text file with VB6.
eg.
first line
second line
third line
I dont want to read through all lines, I just want to read a certain line as an input and write to a certain line as output.
Thanks
Gobble.
解决方案
Can''t do that with text file.......
Here''s the code to read in certain lines from a file. As for writing to a certain line in a file, do you want to write to the file you''re reading? Give us an example.
Expand|Select|Wrap|Line Numbers
Subscribing .
这篇关于读取文本文件中的某些行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取
|
15天全站免登陆