EndOfFile

EndOfFile

is a symbol returned by Read when it reaches the end of a file.

Details

Examples

Basic Examples  (1)

Read returns EndOfFile after it reaches the end of a file:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=

All subsequent calls to Read will give EndOfFile:

In[3]:=
Click for copyable input
Out[3]=

Close the file:

In[4]:=
Click for copyable input
Out[4]=

See Also

Read  Skip  StringExpression  EndOfBuffer

Tutorials

Introduced in 1988
(1.0)