Skip

Skip[stream,type]

skips one object of the specified type in an input stream.

Skip[stream,type,n]

skips n objects of the specified type.

Details and Options

  • Skip behaves like Read, except that it returns Null when it succeeds in skipping the specified objects, and $Failed otherwise.

Examples

Basic Examples  (1)

A file of numbers:

Open a stream to read the file:

Read the first number:

Skip the second number:

Close the stream:

Introduced in 1991
 (2.0)