如何使用for循环逐行读取文本文件 [英] how to read text file line by line using for loop
本文介绍了如何使用for循环逐行读取文本文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
喜。我正在使用vb.net创建一个win表单..在此我想要使用用户打开的FOR循环从文本文件中读取所有行。那怎么办呢?请帮助我..
解决方案
使用StreamReader.ReadLine方法:
http://msdn.microsoft.com/en-us/library/system.io.streamreader.readline .aspx [ ^ ]
hi. i am creating a win form using vb.net.. in this i want to read all the line from text file using FOR loop which user opens. so how should i do this?? please help me..
解决方案
Use the StreamReader.ReadLine method:
http://msdn.microsoft.com/en-us/library/system.io.streamreader.readline.aspx[^]
这篇关于如何使用for循环逐行读取文本文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文