Forcing <lf> <cr> to the end of a re
pickerij@norbord.com
pickerij@norbord.com
Tue, 8 Dec 1998 14:09:58 -0500
Jeff asks ...
>I am working with a quiz file that sends it's output to a file. I need
to
>make sure that at the end of every record I have a line feed followed by
a
>carriage return. I thought that the best way to do this was to use the
>ascii values for these special characters but I am not sure how to set
it
>up. Does anyone have any ideas?
define d-10 int size 2 = 10
define d-lf char*1 = char(d-13)[1:1] or [2:1]
define d-13 int size 2 = 13
define d-cr char*1 = char(d-13)[1:1] or [2:1]
The substring starting position is machine dependent. The HP3000 uses the
right byte (i.e. [2:1]), those old Compaq machines use the left byte.
Unix is incomprehensible :-)
Regards,
John Pickering
JWP Systems Inc
Toronto
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
powerh-l@lists.swau.edu is gatewayed one-way to bit.listserv.powerh-l
This list is closed, thus to post to the list, you must be a subscriber.