liveBook · Manning

EOF

Also called end-of-file

EOF is the condition or signal indicating that no further input 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 EOF →

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 EOF →

Also covered in

What to know first

Related concepts

Questions about EOF

What is EOF?

EOF is the condition or signal indicating that no further input is available from a file or stream.

Which Manning books explain EOF?

Go in Practice, Second Edition and Modern C, Third Edition.

What should I know before learning EOF?

Manning books that teach EOF usually introduce slicing first.

What is the difference between EOF and error?

EOF is the condition or signal indicating that no further input is available from a file or stream. Error is a book-specific response handler that writes an error message to an HTTP client and stops handler processing.

What is EOF also called?

EOF is also called end-of-file.

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.