>>
>> ih=fopen([filename], read_only)
>> oh=fcreate([new filename])
>> do while not feof(ih)
>> cBuff=fread(ih, 8192)
>> cOutBuff=CrunchMunch(cBuff)
>> =fwrite(oh, cOutBuff)
>> enddo
>> CloseEmAll
>>
>Your second point is interesting. Currently I do it by fgets() fputs(), but fread(), fwrite() should be more efficient, because I may use bigger number. Is 8192 is maximum size here? I'll check it.
Fgets() and FPuts() are line-oriented. FGets() will read it until the first cr, lf or pair of them - which means it'll use some sort of buffering, and then look for the EOL marker inside the buffer. That's overhead - and FPuts() will add the cr+lf at the end of line, which is also some overhead. FRead() just reads a bunch of bytes and checks for FEof() only (i.e. will give you a shorter string when you hit the end). With it, you do the buffering yourself, and in your case, you don't care of the CRs and LFs anyway, right?
> In the meantime I thought about creating a C FLL for this purpose, but I don't remember off hand String functions in C++. Perhaps, new libraries have strtran() analogue embedded. If you can help me with C++ code here, I'd appreciate it. I found an example of Cetin's FLL for parsing strings...
I'm C++ illiterate. I may be able to read the code to some extent, but it's been years since my last attempt to write some.