This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

Skip

Skip
skips one object of the specified type in an input stream.
Skip
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:
A file of numbers:
Open a stream to read the file:
In[2]:=
Click for copyable input
Out[2]=
Read the first number:
In[3]:=
Click for copyable input
Out[3]=
Skip the second number:
In[4]:=
Click for copyable input
In[5]:=
Click for copyable input
Out[5]=
Close the stream:
In[6]:=
Click for copyable input
Out[6]=
New in 2