Top "Eof" questions

End of file (commonly abbreviated EOF) is a condition in a computer operating system where no more data can be read from a data source.

fseek on a position beyond EOF does not trigger EOF using feof, how come?

I'm reading data from a file to memory that is opened with: FILE *f = fopen(path, "rb"); Before I start …

c linux io eof fseek
Why is failbit set when eof is found on read?

I've read that <fstream> predates <exception>. Ignoring the fact that exceptions on fstream aren't very informative, …

c++ fstream eof
How to read input until EOF in Lisp

How do I read an input stream until EOF in Lisp? In C, you might do it like this: while ((…

lisp common-lisp eof
Java, StaX simple code but get parse error, premature end of file

I'm trying to figure out IO using StaX, but I keep getting "malformed" and "premature EOF" errors from the reader. …

java xml eof stax malformed
Prevent FIFO from closing / reuse closed FIFO

Consider the following scenario: a FIFO named test is created. In one terminal window (A) I run cat <test …

unix named-pipes eof fifo
eof problem c++

i am using Dev C++ on windows xp #include <iostream> #include <fstream> #include <string> …

c++ fstream eof dev-c++
How to send EOF to a process in Java?

I want to run groff in a Java program. The input comes from a string. In real command line, we …

java eof groff