Hi,
When I want to open a text file to read info I use this vb.net syntax:
Dim sr As New StreamReader("c:\MyText.txt")
Dim t As String
t = sr.ReadToEnd
sr.Close()
Is this not the perferred syntax? It seems to me, the most straight forward.
I'd like to know your thoughts on the various other ways to do this same task and why you believe one way is better than another.
Thanks.
Steve
When I want to open a text file to read info I use this vb.net syntax:
Dim sr As New StreamReader("c:\MyText.txt")
Dim t As String
t = sr.ReadToEnd
sr.Close()
Is this not the perferred syntax? It seems to me, the most straight forward.
I'd like to know your thoughts on the various other ways to do this same task and why you believe one way is better than another.
Thanks.
Steve