StreamPosition

StreamPosition[stream]

returns an integer that specifies the position of the current point in an open stream.

Details

  • On most computer systems, the integer returned by StreamPosition gives the position counting from the beginning of the file in bytes.

Examples

Basic Examples  (1)

Open a stream:

Read the first number from the stream object:

The position counting from the beginning of the stream:

Close the stream:

Introduced in 1991
 (2.0)