Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
TextIo.inRecordDelimiter Method

TextIo.inRecordDelimiter Method

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


public str inRecordDelimiter([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 output file, use the TextIo.outRecordDelimiter Method.

The following example sets the record delimiter to 255.

boolean openFile()
{
    boolean ret = false;
    int     recordLength = 128;
    int     numOflastCharacter = 255;
    ;
    textFile = new TextIo(filename, 'r');

    if (textFile)
    {
        if (textFile.status())
        {
            throw error("@SYS52680");
        }
        textFile.inFieldDelimiter(num2char(numOflastCharacter));
        textFile.inRecordDelimiter(num2char(numOflastCharacter));
        textFile.inRecordLength(recordLength);
        ret = true;
    }

    return ret;
}

Community Additions

ADD
Show:
© 2015 Microsoft