I am working on a program that needs to out put a certain line of text from a text file to the .text property of a textbox. any ideas? do you want more specifics on my project?
making text appear from a line of a text file
Collapse
X
-
Originally posted by thumper5I am working on a program that needs to out put a certain line of text from a text file to the .text property of a textbox. any ideas? do you want more specifics on my project?
If you have a look at the index at the top of the VB Articles area, there are a couple of samples there that show how to read a file. -
one way is to just to the following
Code:Close #1 Open "InputFile.Txt" For Input As #1 Dim I as Integer For I = 0 to DesiredLine-1 Line Input #1, X$ Next I Line Input #1, X$ Form1.TextBox1.Text = X$
Comment
Comment