Hi VB Guys and VB Gals,

Need some help here with a VB code, hope you can help me out or give some ideas, anything!

How do I get my file contents from a .txt file to appear on my textbox?

Here's my code....

Private Sub CmdView_Click()
Dim myline As String
Open "d:\mydocuments\input.txt" For Input As #1
Do Until EOF(1)
Line Input #1, myline
TextBox1.Text = myline
Loop
Close #1
Close #2
End Sub

Basically, it reads the contents of input.txt by line and writes it to the textbox.... but it keeps on overwriting the first line. Is there some kind of WRITELN function in VB? What do you do to completely write down the whole contents of the file to the textbox?

Thanks! =)