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 does ifstream's eof() work?

#include <iostream> #include <fstream> int main() { std::fstream inf( "ex.txt", std::ios::in ); while( !inf.…

c++ ifstream eof
read.csv warning 'EOF within quoted string' prevents complete reading of file

I have a CSV file (24.1 MB) that I cannot fully read into my R session. When I open the file …

r csv eof read.table
Python 3: EOF when reading a line (Sublime Text 2 is angry)

while True: reply = input('Enter text') if reply == 'stop': break print(reply.upper()) The result was: Enter text:Traceback (most …

python python-3.x sublimetext2 eof
Representing EOF in C code?

The newline character is represented by "\n" in C code. Is there an equivalent for the end-of-file (EOF) character?

c character ascii eof
`getchar()` gives the same output as the input string

I am confused by a program mentioned in K&R that uses getchar(). It gives the same output as …

c eof getchar
Checking for an empty file in C++

Is there an easy way to check if a file is empty. Like if you are passing a file to …

c++ eof
What is value of EOF and '\0' in C

I know that EOF and '\0' are of type integers, but if so shouldn't they have a fixed value? …

c++ c null eof
PyCharm. /usr/bin/python^M: bad interpreter

Cannot figure out, where to change EOF in PyCharm. My scripts, started with: #!/usr/bin/python # -*- coding: utf-8 …

python interpreter eof pycharm
Can we write an EOF character ourselves?

Most of the languages like C++ when writing into a file, put an EOF character even if we miss to …

c++ eof
reading input till EOF in java

In C++ if I wish to read input till the EOF I can do it in the following manner while(…

java file-io eof