Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Systems Interfaces & Deployment > File Operations > Low-Level File Operations >

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.
  • Skip behaves like Read, except that it returns Null when it succeeds in skipping the specified objects, and $Failed otherwise.
A file of numbers:
Open a stream to read the file:
Read the first number:
Skip the second number:
Close the stream:
New in 2
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team