Mathematica > Systems Interfaces & Deployment > File Operations > Low-Level File Operations > Skip >

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
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF