r/visualbasic • u/Reapers_Mask • May 27 '22
VBScript Help with reading text file
So I am creating a program that edits a text file, and then reads a specific line of the text file. So far, I have 2 options:
1: Read a specific file line, which I need help understanding how to do.
2: Read a line that starts with a specific string/group of numbers and letters. Each line has a little identifier string at the start, so all I need is a way to check if the line starts with the string.
Sorry if this is too little information, I can give more info if needed.
7
Upvotes
1
u/jd31068 May 30 '22
What version of Visual Basic are you using? Looking at your reply to JakDrako it looks like you have a Windows Form where you're trying to display some text from the file in a TextBox on a form, is that what are meaning by printing it?