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

where does england get its natural resources
How were the democratic and republican parties formed?
The density of mercury is 13.6 g/mL. What is the volume of a 155-gram sample of mercury?
How many miles did the the russian empire stretch from east to west in 1861
Geometry  The diagonals of a  kite are in the ratio of 3:2. The area of the kite is 27 cm^2 .  Find the length of both diagonals. (Hint: Let the lengths of the
How were the democratic and republican parties formed?
How are boundaries between river systems and natural vegetation regions different?
Do you think the Palmer Raids were a valid approach for a government to take? Explain
There are 376 stones in three piles. The second pile has 24 more stones than the first. The third pile has twice as many stones as the second. How many stones i
How did the booming economy of the 1920s lead to changes in American life?