Element: channel.delimiter

Type

string

Description

The character to be used as the delimiter(s) between data items when reading from or writing to channel.

For input channels, the value of channel.delimiter may be a one or two character string, containing a delimiting character and optionally a space to indicate that white space is also permitted. When reading from a channel with no channel.delimiter set, the delimiter used is ', ', i.e. a comma and/or white space.

For output channels, the value of channel.delimiter may be a string of any length which is then used to separate output fields. When writing to a channel with no channel.delimiter set, the delimiter used is a space.

This delimiter can be overridden by use of the -del switch on an individual read or write command.

Examples

On input the following will treat | and/or white space as delimiters.

chan.delimiter = '| '

On input the following will treat only | as a delimiter and will regard white space as part of the data.

chan.delimiter = '|'