Skip to main content

Questions tagged [eof]

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.

eof
0 votes
1 answer
95 views

C++ EOF Help Using Ctrl + Z and While Loop

I'm struggling a bit to understand how to set this up properly. Just a bit of background. I'm new to programming and I've only been using C++ for 3 weeks now. We were given a problem to allow a user ...
yangd14's user avatar
-1 votes
1 answer
70 views

Why is "input()" raising "unexpected EOF while parsing" error?

I'm coding in Python. I wrote this code in text editor: input () Then saved as spam.py. In the terminal, it was successfully running by typing: $ python3 spam.py But when I ran the same code in ...
User's user avatar
  • 1
0 votes
0 answers
13 views

CLion - Triggering EOF During Input (Run Window)

I asked a question in the below link regarding how/when EOF triggers a simple C program to finish execution and output a count of characters using getchar(). Triggering EOF From Keyboard Input (...
Xejo's user avatar
  • 181
0 votes
2 answers
81 views

Triggering EOF From Keyboard Input (Terminal)

I'm a new[er] programmer and going through K&R's "ANSI C" 2nd edition book. The example has the following program that counts characters using getchar() until EOF is reached. include &...
Xejo's user avatar
  • 181
0 votes
1 answer
46 views

Regarding `EOF`-related conditions in a C reverse polish calculator

I've been following the K&R C book and I'm confused with one part of the given code for the reverse polish calculator in section 4.3. There's an if statement at the bottom of the getop function /* ...
thruse's user avatar
  • 3
0 votes
1 answer
78 views

Why does this code print null characters and why does it find null characters in both files? [closed]

bool isIdentical(FILE *file1, FILE *file2) //this fun tell me files is identical or no { // this must have char1 in file1? char c1 = fgetc(file1); // this must have char2 in file2? ...
mazen mohamed's user avatar
0 votes
0 answers
30 views

How did I mess up my .pickle? I'm getting an "EOFError: Ran out of input" error, but the file isn't empty. Where did my loop fail?

I have a python script which iterates through all of the videos in a directory and performs inference using a neural network to classify segments of the videos, and saves the inference results to a ...
Robert's user avatar
  • 1
3 votes
2 answers
3k views

Error: "1824 bytes of body are still expected" while cloning repository from GitHub

I'm encountering an issue while trying to clone a Git repository from GitHub. When I run the git clone command, I consistently receive the following error message: 1824 bytes of body are still ...
Ajay Dhangar's user avatar
0 votes
1 answer
178 views

Oracle Database Error: PLS-00103: Encountered the symbol "EXCEPTION" / "end-of-file" when expecting one of the following [closed]

I've just started with Oracle Database XE, and I'm struggling with 2 errors in my code: Error(89,5): PLS-00103: Se ha encontrado el símbolo "EXCEPTION" cuando se esperaba uno de los ...
Andrea Romero Ruiz's user avatar
0 votes
0 answers
45 views

Problem with EOF in C++ / Getting Runtime error [duplicate]

I have just started studying file handling in cpp I am studying on my own from internet / and books I Know about EOF (end of file) that indicates that this is the end of the file and its value is -1 i....
Prashant Kumar Gupta's user avatar
0 votes
0 answers
47 views

fstream get() function returns weird values

I am working on a maze solving algorithm. I input a text file formatted with 2 numbers at the top defining the width and height. Then a G for goal, S for start, # are walls, . are open spaces. Example ...
Moe98's user avatar
  • 11
2 votes
2 answers
55 views

How to print a variable from an associative array and a multiline string from a loop cycle into a heredoc

I need to return variables (from 1 to 4) and the selected values from the associative array into the heredoc. Variables BASE=ppp-multi-image DEV=sdb # i.e. sdb or mmcblk0 ATTR=RequiredPartition,...
user23965762's user avatar
0 votes
0 answers
131 views

How to solve error: RPC failed; curl 18 transfer closed with outstanding read data remaining fatal: early EOF

am trying to clone dhis2 source from a folked repository. am facing the error below Cloning into 'dhis2-android-capture-app'... remote: Enumerating objects: 169495, done. remote: Counting objects: 100%...
Jekap Jesman's user avatar
1 vote
1 answer
82 views

Does getchar read ctrl+z or return EOF?

I have this code: #include <stdio.h> int main(void) { int d=0; d = getchar(); printf("%d\n", d); } Output: ^Z -1 From what I understand there are two things that could be ...
user394334's user avatar
-2 votes
2 answers
256 views

EOF in C, what is EOF? [duplicate]

I have some questions about EOF in C. What is actually EOF? I have read that it is a macro that "expands" to -1. What does this mean? Specifcally what does "expand" mean in this ...
user394334's user avatar

15 30 50 per page
1
2 3 4 5
124