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 >

StreamPosition

StreamPosition[stream]
returns an integer which specifies the position of the current point in an open stream.
  • On most computer systems, the integer returned by StreamPosition gives the position counting from the beginning of the file in bytes.
Open a stream:
Read the first number from the stream object:
The position counting from the beginning of the stream:
Close the stream:
Open a stream:
In[1]:=
Click for copyable input
Out[1]=
Read the first number from the stream object:
In[2]:=
Click for copyable input
Out[2]=
The position counting from the beginning of the stream:
In[3]:=
Click for copyable input
Out[3]=
Close the stream:
In[4]:=
Click for copyable input
Out[4]=
New in 2
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team