TextIo.outRecordDelimiter Method
Gets or sets the character that is used for the record delimiter of an output file represented by a TextIO object.
Syntax
public str outRecordDelimiter([str value])
Run On
Called
Parameters
- value
Type: str
The character to be used as the record delimiter; optional.
Return Value
Type: str
The character used as the record delimiter.
Remarks
To set the record delimiter for an input file, use the .
Examples
The following example sets the record delimiter for an output file to '\r\n'.
void defineFile()
{
diskFile = new TextIo(diskFileName,'W');
if (!diskFile)
{
throw error("@SYS26757");
}
diskFile.outRecordDelimiter('\r\n');
diskFile.outFieldDelimiter('');
}