Ask Question
19 February, 10:52

You want to read from a file, whose size you do not know. what can you do to ensure you read all the bytes of data within that file?

+3
Answers (1)
  1. 19 February, 11:58
    0
    While you cannot be sure you have enough memory to hold all the bytes of the file at the same time, you should read the bytes in chunks and discard them after processing. While reading, you keep testing for the end-of-file status.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “You want to read from a file, whose size you do not know. what can you do to ensure you read all the bytes of data within that file? ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers