TextFile :: lineBreak - Line breake sequence
Text file access uses different characters for separating lines in Windows and Linux operating systems. Usually, line breaks are used according to the system conventions. In order to use different line break characters (e.g. Linux line breaks under Windows), default line break characters may be defined as top level option or environment variable DefaultLineBreak.
The property contains a sequence of characters to be written at end of line. Usually, the line break sequence is \n for Linux and \r\n for Windows. In order to use different line break characters (e.g. Linux line breaks under Windows), line break characters may be set by application.
Implementation overview
- Get line break sequence
TextFile :: lineBreak (  ) - Change line break sequence
TextFile :: lineBreak ( sLineBreak )
Implementation details
-
Get line break sequence
odaba::String TextFile  :: lineBreak (  )
The property returns the character sequence currently used as line break sequence.
to list
-
Change line break sequence
odaba::String TextFile  :: lineBreak ( odaba::String &sLineBreak )
The function sets the line break sequence to the value passed in sLineBreak.
- sLineBreak
- Line break characters
The sequence of line break characters is usually like \n or \r\n. In principal, one may pass, however, any string as line break sequence.
to list
- sLineBreak
- Line break characters