Product Site

1.17.3. Line-end characters

Windows and Unix-like systems use different characters to indicate a line-break (ending one line and starting a new one) in a text file. While Windows uses the two-character sequence '0d 0a'x (carriage-return, line-feed), Unix-like systems use the character '0a'x (line-feed) as a line-end indicator.

Rexx supports both line-end indicators on each platform, both for the Rexx program itself, and for data manipulated with e. g. built-in functions LINES, LINEIN, Stream methods lines, lineIn, arrayIn, String method makeArray, or MutableBuffer method makeArray. This means, when moving from one platform to another, typically there should be no line-end conversions necessary for Rexx programs or data read by these programs.

Note that you cannot include line-end characters '0d'x or '0a'x in a literal string.