Partager via


TextIo.inRecordDelimiter Method

Definition

Overloads

inRecordDelimiter()

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

inRecordDelimiter(String)

inRecordDelimiter()

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

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

Returns

The character used as the record delimiter.

Remarks

To set the record delimiter for an output file, use the .

The following example sets the record delimiter 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; 
}

Applies to

inRecordDelimiter(String)

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

Parameters

_value
String

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

Returns

Applies to