in reply to Re: Insert at regular increments
in thread Insert at regular increments
Today, things have changed a bit (sigh). I'm told the files I'm working with *sometimes* have LFs but not CRs, although I don't have samples like this. Also, the record separator in the "good" files appears to be "CR CR LF" instead of "CR LF", for whatever reason. (These files are output from a buggy 3rd-party program, which we're not likely to get patched.)
I'll need to take these oddities into account, and it sounds like I can't make any assumptions about the files I've got to work with. I'm going to try to work up something that's very generalized, simply makes sure each line of each file is 320 chars with the proper record separator, and warns me if it sees an oddball I didn't know about. You've all given me ideas for nice approaches to this. Much thanks to everyone!
-Peter
|
|---|