07-21-2005 08:39 AM
07-21-2005 10:05 AM
07-21-2005 10:21 AM
07-21-2005 11:21 AM
It makes no sense to read such huge data files into memory, convert it all to ASCII (ALSO in memory but using even more RAM). During run, you're easily topping GBytes starting with ~300MB ofbinary data!
Read your data in manageable chunks, convert, append to output file, wash, rinse, repeat until the entire input file is processed..
ALSO:
Please don't use string concatenation operations on paths, use "built path" and "strip path" instead.
You loop needs a small wait statement (e.g. 100ms). You don't want to spin the false case at full rate, consuming all CPU doing absolutely nothing.