Export (0) Print
Expand All

TextIo.outFieldDelimiter Method

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


public str outFieldDelimiter([str _value])

Parameter

Description

_value

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

The character used as the field delimiter.

Called

To set the field delimiter for an input file, use TextIo.inFieldDelimiter.

The following example sets the field delimiter to ' ' (nothing) for an output file.

void defineFile()
{
    diskFile = new TextIo(diskFileName,'W');
    ;
 
    if (!diskFile)
    {
        throw error("@SYS26757");
    }
    diskFile.outRecordDelimiter('\r\n');
    diskFile.outFieldDelimiter('');
}

Community Additions

ADD
Show:
© 2014 Microsoft