Gambas Documentation - /comp/gb/stream/endofline

/comp/gb/stream/endofline

# Stream.EndOfLine (gb)

Property EndOfLine As Integer

Returns or sets the newline separator used by this stream.

The possible values are:

- gb.Unix for lines separated by `Chr$(10)`.

- gb.Windows for lines separated by `Chr$(13) & Chr$(10)`.

- gb.Mac for lines separated by `Chr$(13)`.

The value of this property is used by LINE INPUT, PRINT and the Stream.Lines property.

Note that gb.Unix actually allows you to read both Unix and Windows line formats. But it only writes Unix format.