DOCUMENTATION CENTER SEARCH
Mathematica
>
Low-Level File Operations
>
Built-in
Mathematica
Symbol
Searching Files
Streams and Low-Level Input and Output
Tutorials »
|
Skip
StreamPosition
See Also »
|
Files
Low-Level File Operations
String Operations
More About »
SetStreamPosition
SetStreamPosition
[
stream
,
n
]
sets the current point in an open stream.
MORE INFORMATION
The integer
n
given to
SetStreamPosition
should usually be a value obtained from
StreamPosition
.
SetStreamPosition
[
stream
, 0]
sets the current point to the beginning of a stream.
SetStreamPosition
[
stream
,
Infinity
]
sets the current point to the end of a stream.
EXAMPLES
CLOSE ALL
Basic Examples
(1)
Open a stream:
In[1]:=
Out[1]=
Read the first number from the stream object:
In[2]:=
Out[2]=
Modify the current point in the stream:
In[3]:=
Out[3]=
Read a number from the stream object:
In[4]:=
Out[4]=
Close the stream:
In[5]:=
Out[5]=
SEE ALSO
Skip
StreamPosition
TUTORIALS
Searching Files
Streams and Low-Level Input and Output
MORE ABOUT
Files
Low-Level File Operations
String Operations
New in 2
© 2008 Wolfram Research, Inc.