PureSc0pe Posted March 24, 2004 Posted March 24, 2004 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 doesn't this work? Neither of these Codes worked: Dim sr As New StreamReader("TextBox2.Text") or Dim sr As New StreamReader(" & TextBox2.Text & ") Quote It's not impossible, it's Inevitable.
PureSc0pe Posted March 25, 2004 Author Posted March 25, 2004 Dim sr As New StreamReader(TextBox2.Text) And I thought I'd tryed it all....Thanks! :) Quote It's not impossible, it's Inevitable.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.