dbjbv36201 dbjbv36201
  • 22-08-2018
  • Computers and Technology
contestada

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?

Respuesta :

tonb
tonb tonb
  • 22-08-2018

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.

Answer Link

Otras preguntas

This excerpt provides the best illustration of how the author a. shows the importance of agriculture in england. b. uses an historical context to help the rea
How can NIHL be prevented?
A car license plate is made up of 7 letters or numbers, where the numbers are whole numbers 0–9. Suppose that a license plate is randomly generated, one charac
why were Sacco and Vanzetti cinsidered anarchists and how did that affect the result of their trial
three measures that have been taken since the christmas day tsunami and how these steps directly relate to the causes of the diaster?
Ian had 4 cases of comic books and 6 adventure books. each case holds c comic books. he gave 1 case of comic books to his friend. write an expression that gives
Why do people sweat .-.
__________ is the study of how organisms interact with their environment.
Why doesn't Miss Maudie laugh at Scout like the other women from the missionary circle when Scout is asked what she will be when she grows up? A. Scout has aske
What did the Roman soldiers have in their army?