T_im
Newcomer
When I try reading a one line file code I get an error with this code:
Dim sr As New System.IO.StreamReader(File1.PostedFile.InputStream)
Dim rtf As String
rtf = sr.ReadLine()
rtf = rtf & sr.ReadToEnd
sr.Close()
How can I avoid this? For some reason I would also get the error with this too:
Dim sr As New System.IO.StreamReader(File1.PostedFile.InputStream)
Dim rtf As String
rtf = sr.sr.ReadToEnd
sr.Close()
Dim sr As New System.IO.StreamReader(File1.PostedFile.InputStream)
Dim rtf As String
rtf = sr.ReadLine()
rtf = rtf & sr.ReadToEnd
sr.Close()
How can I avoid this? For some reason I would also get the error with this too:
Dim sr As New System.IO.StreamReader(File1.PostedFile.InputStream)
Dim rtf As String
rtf = sr.sr.ReadToEnd
sr.Close()