Ask Question
8 September, 10:30

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?

+4
Answers (1)
  1. 8 September, 13:09
    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?
Get 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 & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers