Ask 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?

+2
Answers (1)
  1. 26 May, 12:22
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers