"vbnewbie" <te***@vbnewbie.com> schrieb:
I've been testing some of the example streamreads on 40 meg text file. I
notice that it take awhile to read in debug.write and textbox1.text multi
line.
but if i use a textpad program, example editplus, it loads a lot quicker.
My question is... what is the limitation here or is there something that
can be done different for faster reading?
Some text editors don't load the whole file. Instead, they only load the
part that is visible in the text editor (and some more parts). Imagine you
run your application on a machine with 128 MB of physical RAM and you load
an 100 MB file...
Notice that loading/displaying is much faster if you assign the whole
content to the textbox once instead of incrementally building up the
textbox's content.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>