liveBook · Manning

End-of-file indicator

An end-of-file indicator is a condition, signal, or convention indicating that no more input data is available from a file or stream.

How 2 Manning books explain it

Go in Practice, Second Edition

End-of-file is the condition indicating that no more data can be read from a file or stream.

How it is used
Controls termination of sequential file, stream, and multipart parsing loops.
How deep it goes
Explains normal io.EOF termination and contrasts it with unexpected EOF, but does not develop reader internals.
Examples
Uses sequential file reads, line scanning, JSON-stream processing, and multipart upload iteration.
What you can do after
Diagnose normal input exhaustion versus incomplete input while implementing reader and multipart-processing loops.

Read how Go in Practice, Second Edition explains end-of-file indicator →

Modern C, Third Edition

End-of-file is the condition indicating that no more input is available from a stream.

How it is used
Distinguishes normal input exhaustion from input failure while checking C stream operations.
How deep it goes
Explains return-value encoding, failed-read timing, feof confirmation, and output-error handling, but not stream internals.
Examples
Uses manual fgets logic, character and line input, output checks, and a program that dumps files with fgets.
What you can do after
Diagnose stream reads by checking EOF, confirming end-of-file with feof, and reporting other failures separately.

Read how Modern C, Third Edition explains end-of-file indicator →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.