Computer Science, asked by divyanshparihar1998, 14 hours ago

You are getting End of file error in QBasic, what should you do?​

Answers

Answered by kingAnshupathak
1

Answer:

Add a NOT EOF(file number) to your loop.

Explanation:

EOF stands for "end of file" which means that qbasic has reached the end of the file while printing the output. You have not mentioned what to do if the file finishes resulting in an error.
Example of usage:

OPEN "hello.txt" FOR INPUT AS #1

CLS

WHILE NOT EOF(1)

   INPUT #1, a

   PRINT a

WEND

CLOSE #1

END

PLEASE MARK AS BRAINLIEST!!!! :)

Similar questions