Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

TextIo.outRecordDelimiter Method

Gets or sets the character that is used for the record delimiter of an output file represented by a TextIO object.


public str outRecordDelimiter([str value])

Called

Parameter

Description

value

The character to be used as the record delimiter; optional.

The character used as the record delimiter.

To set the record delimiter for an input file, use the TextIo.inRecordDelimiter Method.

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('');
}
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.