Streams vs Strings - Windows Form app
Hi all,
I'm working on a Windows Forms application that basically needs to do multiple reads from a large text file and display certain values. I'm unsure what's best to use, strings - or streams. I have an openFileDialog reading the text into a rich text control using streams... but I'm much more used to the text searching functions that strings provide (find, length, substr etc), any advice for this kind of project would be welcome :)
Thanks,
Payne747
Re: Streams vs Strings - Windows Form app
What do you mean by "Windows Forms Application"?
Are you writing the code in managed C++ or are you referring to a "Windows Dialog App"?
Re: Streams vs Strings - Windows Form app
It will be .NET (so I guess very managed) :P
Re: Streams vs Strings - Windows Form app
Re: Streams vs Strings - Windows Form app
Define "large".
If this will be a time consuming operation (regardless you use strings or streams) you should do the processing in a second, worker thread.