Compartir a través de


TextIo.outFieldDelimiter Method

Definition

Overloads

outFieldDelimiter()

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

outFieldDelimiter(String)

outFieldDelimiter()

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

public:
 override System::String ^ outFieldDelimiter();
public override string outFieldDelimiter ();
override this.outFieldDelimiter : unit -> string
Public Overrides Function outFieldDelimiter () As String

Returns

The character used as the field delimiter.

Remarks

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

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(''); 
}

Applies to

outFieldDelimiter(String)

public:
 override System::String ^ outFieldDelimiter(System::String ^ _value);
public override string outFieldDelimiter (string _value);
override this.outFieldDelimiter : string -> string
Public Overrides Function outFieldDelimiter (_value As String) As String

Parameters

_value
String

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

Returns

Applies to