Click to See Complete Forum and Search --> : Streams vs Strings - Windows Form app


Payne747
February 23rd, 2010, 05:09 PM
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

Arjay
February 23rd, 2010, 05:12 PM
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"?

Payne747
February 25th, 2010, 05:22 AM
It will be .NET (so I guess very managed) :P

cilu
February 25th, 2010, 06:40 AM
[ redirected ]

cilu
February 25th, 2010, 06:42 AM
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.