Click to See Complete Forum and Search --> : Finding names in a list box


bboy_romeo
December 3rd, 2004, 12:33 PM
My program is almost complete with the help from others here on codeguru. Thank you all for your help, but i need one last thing which i still cant figure out how to find certain names in a text file and display them back into the listbox with all their information in that same line in the text file. I've looked at some examples but they are always for C++ or VB or VB6 I need help with VB.NET and simpler codes. Cause im still pretty new to VB.NET. Thanks for anyone who reads this and replies.

soumya_bhatta
December 4th, 2004, 10:19 PM
I think this is related to your latest question, right?
http://www.codeguru.com/forum/showthread.php?t=320589

bboy_romeo
December 5th, 2004, 04:41 PM
no its not related to that question, thats for adding things to a text file
i need to be able to find things from a text file

example: Tom Fish T141 (905-)887-5241 6.0

I hav an input box requesting data say first name; which wud be Tom
I want that to be sent to a list box with the rest of the information on that line (which would be Tom Fish T141 (905)887-5241)

I cant seem to find any help for this. Please someone reply back.

soumya_bhatta
December 5th, 2004, 07:04 PM
While saving the text save every name and related data with a new line. Now while reading back, use the StremReader.


This should tell you how to read the file line by line
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconReadingTextFromFile.asp (http://)

After this, in the loop you have to check for the name user has entered in the input box.