next up previous index
Next: REWIND: Rewind an Open Up: Getting, Saving, and Printing Previous: READ: Read the Next   Index


SKIP: Mark Selected Lines to Skip in a File


\begin{command}
\item[\textbf{Form: }SKIP logical\_name line line1,line2 ...\hf...
...{are two arithmetic expressions giving a range of lines
to skip.}
\end{command}

SKIP builds a skip table of lines to be skipped inside the named file. The file must have been previously opened using the OPEN command. Up to 50 skip points are available in the table for each opened file. Each individual line skipped counts as one specification and each range of lines skipped counts as two specifications. Whenever a file is OPEN'ed, or reOPEN'ed, its skip table is cleared. REWINDing a file (see the REWIND command) does not clear the skip table. If you just type SKIP logical_name without any lines to skip then the table of skipped lines for the named file is printed.

Lines which are SKIPped in a file can not be read with the READ command or by string substitution and are not used by the STAT command. In particular, note that the number of lines in the file as returned by the STAT command is the actual number of lines minus any skipped lines.

Examples:
\begin{example}
\item[SKIP PHOT 1]{Marks line 1 of file PHOT to be skipped.}
\...
...20]{Does both.}
\item[SKIP PHOT]{Prints the skip table for PHOT.}
\end{example}
See the example under the READ command for one use of the SKIP command.


next up previous index
Next: REWIND: Rewind an Open Up: Getting, Saving, and Printing Previous: READ: Read the Next   Index
Jon Holtzman 2002-02-13