Command: channel

Syntax

channel <ident>

or

channel <assign> { , <assign> ... }

Description

Declare one or more channel identifiers. Channel identifiers are in fact pointers to predefined system channels on which to perform text input/output.

Parameters

<ident> = <channel>

Switches

None

Notes

Channels are not usable until they are opened by the open command.

Examples

Create a new un-initialized channel.

channel my_chan

Create a new channel, set it to system channel 2, which may or may not already be in use.

channel ch = chan2

Create a new channel, set it to the first available system channel and then open it for reading a text file.

channel mtc = free_channel
open mtc, -f=points.dat

See Also

Commands:

close, open, read, write

Identifiers:

free_channel (channel), chan# (channel)

Structures:

channel