Visual Basic中的StreamReader [英] StreamReader in Visual Basic
本文介绍了Visual Basic中的StreamReader的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
好吧,我早些时候发布了这篇文章,但似乎没有人了解我,现在我将给一个简单的例子,在另一个多行文本框中必须出现爱"一词.
我有一个简单的streamreader代码,但不是Im搜索.我是Visual Basic的新手,请帮忙!
解决方案
修改您拥有的简单流阅读器"代码:时间.在读取的行中搜索给定的单词. 如果该行包含单词,则将其添加到多行文本框中.
Ok, I posted this earlier but seems no one has understood me, now I will give a simple eich have the word "love" must appear in the another multiline textbox.
I have a simple streamreader code, but its not that Im searching. Im new in Visual basic, please help!
解决方案
Modify the ''simple streamreader'' code you have:
- Read the text a line at time.
- Search for the given word inside the read line.
- If the line contains word then add it to the multiline textbox.
这篇关于Visual Basic中的StreamReader的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文