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
sscanf & newlines

I need to parse a response from a server like this: risposta: 200\n Len 1040\n Expire 30\n \n 1111111111111111111111111\n 1111111111111111111111111\n 1111111111111111111111111\…

c newline eof scanf
How to Handle EOFError for raw_input() in python in Mac OS X

My python program has two calls to raw_input() The first raw_input() is to take multiline input from the …

python macos eof eoferror
IntelliJ IDEA: send EOF symbol to Java application

When running a command-line Java application from IntelliJ IDEA, is it possible to send EOF symbol to the program awaiting …

intellij-idea eof