CommaIo.write Method

Writes values of a simple type.

Syntax

public boolean write( values)

Run On

Called

Parameters

  • values
    Type: [T:]
    One or more values, each of a simple type, separated by a field delimiter. The simple types are string, integer, real, enum, and date.

Return Value

Type: boolean
true if the write operation succeeds; otherwise, false. If the operation fails, you can check the status to learn the cause of the failure.

Remarks

The method accepts a variable number of arguments. Each value that is specified is put into the output record as a field. The first argument becomes the first field, the second argument becomes the second field, and so on. Fields are separated by the field delimiter that is specified in the outFieldDelimiter method. Records are separated by the delimiter that is specified by using the outRecordDelimiter method.

To write complete containers, use the writeExp method.

See Also

CommaIo Class

CommaIo.outFieldDelimiter Method

CommaIo.outRecordDelimiter Method

Io.status Method

Io.writeExp Method