Hi there i was wondering if someone could help me out. Im trying to make a program that will find this specific group of numbers in a file. Then i want it to pop up in a Text box. Im still learning so take it easy on me. Thanks in advanced.
Printable View
Hi there i was wondering if someone could help me out. Im trying to make a program that will find this specific group of numbers in a file. Then i want it to pop up in a Text box. Im still learning so take it easy on me. Thanks in advanced.
If it is a small text file, you can use System.IO.File.ReadAllText to read all the text into a string variable and then search for what you are looking for using the indexof method.
The first thing you'll want to do is read all the lines of the file using IO.ReadAllLines, then you will loop through each line in the results and check if the line contains the group of numbers that you are looking for using String.Contains, if that returns True then you will next show call MessageBox.Show.
Edit: beat to the punch!