Read File line

PureSc0pe

Well-known member
Joined
Mar 17, 2004
Messages
161
Location
Arizona
I am trying to Read the total amount of lines in a text file and I want it to use the file that is selected in the Browse Dialog. The File name that is chosen is displayed in TextBox2. Why doesnt this work?

Neither of these Codes worked:

Dim sr As New StreamReader("TextBox2.Text")
or
Dim sr As New StreamReader(" & TextBox2.Text & ")
 
Back
Top