>>
>>Actually, I don't understand the purpose of this code at all. If you have file and you want to create another file, in which you would have only 320 chars of each string in the first file (e.g. the rest is truncated), then this code is valid (with your corrections). Otherwise why do we need to copy record by record? Or do we want to copy until blank string is encountered?
>>
>Ideally when I have a text-record in the m.buffer, I intend to inspect it and
>Delete the record if it is a ID-rec and confirm that an 'A' record has the same ID, then that will become an independant file - whose name will be the ID.
>The original file contains many batch-ID's (each of witch (pun intend) will become a file)!
Ok, I see the purpose now. Sorry, I can not concentrate exactly on the problem, and I don't see a reason, why it doesn't work.
I'm trying to work on my project, answer qustions about mystery from Steve and Renouir, and also find a problem in this code. Seems like I could not do more than 2 things in a time :)
If it's not broken, fix it until it is.
My Blog