({{, (RefLink[EndOfFile, paclet:ref/EndOfFile])
is a symbol returned by (RefLink[Read, paclet:ref/Read]) when it reaches the end of a file. }})

OpenersNotesSection(Spacer1)Details

Subsequent calls to (RefLink[Read, paclet:ref/Read]) will also give (RefLink[EndOfFile, paclet:ref/EndOfFile]).

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

(RefLink[Read, paclet:ref/Read]) returns (RefLink[EndOfFile, paclet:ref/EndOfFile]) after it reaches the end of a file:

str = OpenRead["ExampleData/textfile"];

Read[str, {String,String,String, String}]

All subsequent calls to (RefLink[Read, paclet:ref/Read]) will give (RefLink[EndOfFile, paclet:ref/EndOfFile]):

Read[str, String]

Close the file:

Close[str]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[Read, paclet:ref/Read])  ▪  (RefLink[Skip, paclet:ref/Skip])  ▪  (RefLink[StringExpression, paclet:ref/StringExpression])  ▪  (RefLink[EndOfBuffer, paclet:ref/EndOfBuffer])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[Reading Textual Data, paclet:tutorial/ReadingTextualData])}})}})