This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

EndOfFile

EndOfFile
is a symbol returned by Read when it reaches the end of a file.
Read returns EndOfFile after it reaches the end of a file:
All subsequent calls to Read will give EndOfFile:
Close the file:
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]=
New in 1