Hi,
I am writing an application where I need to
- read data from one textfile
- do some processing
- write processed data to a new textfile.
I am using a streamreader for reading the whole textfile at once, then performing the processing in one step, and then writing all data to the new textfile.
This works fine until I try to process files bigger then about 100MB. Then, with bigger files, the prog. crashes and throws an "Out of memory exception".
Anyone who know how to get around this problem?
Thanks in advance,
Jorn
Loading
Jorn AnkePosted Jan 8, 2011, 2:47 PM
I discowered that streamreader is buffered by default - and very fast. So, no need to waste time on exploring fancy methods.