REWIND Command

Description:

This command causes an external data file to be rewound. The file must already have been opened by the OPEN command.

The "ON ERROR GOTO err_label" clause can be specified to define a label to which control should be transferred in the event of an error.

Format:

 REWIND fileid {ON ERROR GOTO err_label}

Parameters:

fileid

The name associated with the file when it was opened.

err_label

A label defined within the current scope of the Script, to which control branches if an error occurs.

Example:

 REWIND datafile

See also:

File Handling Commands