Stripping Carriage Return / Line Feed from text file
Barry Wiseman
bwiseman at optonline.net
Tue Jul 29 15:59:57 PDT 2008
Bill Campbell wrote:
> On Tue, Jul 29, 2008, Kenneth Brody wrote:
>> Quoting Scott Walker (Tue, 29 Jul 2008 17:27:13 -0400):
>>
>>> I want to use a text file as an alien file.
>>>
>>> It's fixed length fields but has a carriage return/line feed between
>>> each record.
>>>
>>> Can someone remind me of the easiest way to strip the 0d0a from these
>>> records.
>> Why not just add a (2,*) field at the end of your map, and just ignore
>> that field?
>
> I like the SCO program to do this, dtox -- aptly named to detox
> things from Microsoft (yeah this was originally a CP/M thing :-).
>
> Bill
That would leave Scott with 0a's to strip instead of 0d0a's, so Ken's
tip was still needed.
More information about the Filepro-list
mailing list