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.

How to simulate an EOF?

I am currently reading K&R's book and typing in the examples from the first section, and there are …

c eof getchar kernighan-and-ritchie
Why is it recommended to have empty line in the end of a source file?

Some code style tools recommend this and I remember seeing some unix command line tools warning about missing empty line. …

language-agnostic coding-style eof
How to signify no more input for string ss in the loop while (cin >> ss)

I used "cin" to read words from input stream, which like int main( ){ string word; while (cin >> word){ //…

c++ file-io cin eof
How to detect EOF in Java?

I've tried some ways to detect EOF in my code, but it still not working. I've tried using BufferedReader, Scanner, …

java eof
How to find EOF in a string in java?

I am working in school project. In that what they told is, I will be given a String which contains …

java string eof
<eof> expected near 'end'

I'm using these files in my gaming server, and every time I add a new player model, I get [ERROR] …

lua eof game-development
How to detect EOF in awk?

Is there a way to determine whether the current line is the last line of the input stream?

awk eof
How to see if a Reader is at EOF?

My code needs to read in all of a file. Currently I'm using the following code: BufferedReader r = new BufferedReader(…

java eof
In python, how to check the end of standard input streams (sys.stdin) and do something special on that

I want to do something like: for line in sys.stdin: do_something() if is **END OF StdIn**: do_something_…

python stdin eof
Bash: warning: here-document at line delimited by end-of-file (wanted `EOF')

The following function in bash comes up with the error mentioned in the title. The error usually appears when the …

bash eof heredoc