Export (0) Print
Expand All

TextIo.inRecordLength Method

Gets or sets the record length for an input file.


public int inRecordLength([int value])

Called

Parameter

Description

value

The record length for the input file; optional.

The record length for the input file.

The following example sets the record length to 128.

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:
© 2014 Microsoft