Product Site

5.4.17.7. endofline

Returns a platform-specific string representing the line-end characters. It returns '0d 0a'x (carriage-return, line-feed) on Windows, and '0a'x (line-feed) on Unix-like systems.

See also the environment symbol .ENDOFLINE, which provides the same information.

Example 5.287. RexxInfo class — endofline method
say .RexxInfo~endofline    -- '0d 0a'x /* Windows */
say .RexxInfo~endofline    -- '0a'x /* Unix-like system */