reading text files

  • Thread starter Thread starter pyro81
  • Start date Start date
P

pyro81

Guest
Can someone tell me the fastes way to read a text file to a textbox or richtextbox.
i am using readtoend of the streamreader class at the mo...does anyone know a quicker method of getting the text into the box.
i am using vb.net
 
Au contraire... Derek mentions in this article on EliteVB that
ReadToEnd reads from the stream one character at a time, which
means it was born to be slow.

There is much better code listed in that article that shows how to
read the stream into a buffer, which should be quicker.
 
Back
Top