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 read user input until EOF?

My current code reads user input until line-break. But I am trying to change that to a format, where the …

python string input eof
Token error: EOF in multi-line statement

The following code gives me this error "Token Error: EOF in multi-line statement". What is this error? How can I …

python tkinter eof easygui
How to use `while read` (Bash) to read the last line in a file if there’s no newline at the end of the file?

Let’s say I have the following Bash script: while read SCRIPT_SOURCE_LINE; do echo "$SCRIPT_SOURCE_LINE" done …

bash newline eof
I'm trying to understand getchar() != EOF

I'm reading The C Programming Language and have understood everything so far. However when I came across the getchar() and …

c eof getchar putchar
How to loop until EOF in Python?

I need to loop until I hit the end of a file-like object, but I'm not finding an "obvious way …

python eof stringio
Reaching EOF with fgets

I'm writing a function that perform some authentications actions. I have a file with all the user_id:password:flag …

c unix eof fgets
How to know if the next character is EOF in C++

I'm need to know if the next char in ifstream is the end of file. I'm trying to do this …

c++ eof
Go failing - expected 'package', found 'EOF'

I've been having a hard time trying to execute a simple golang program in a virtual machine powered by vagrant. …

go package eof
How to check for EOF in Python?

How do I check for EOF in Python? I found a bug in my code where the last block of …

python eof
read data from file till end of line in C/C++

It is common to read until end of file, but I am interested in how could I read data (a …

c fopen eof eol