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

whats the answer will give brainliest solve for x
What happens to a wave when it is reflected? A. The wave is radiated. B. The wave passes through a medium. C. The wave is transmitted. D. The wave b
What happens to a wave when it is reflected? A. The wave is radiated. B. The wave passes through a medium. C. The wave is transmitted. D. The wave b
The rate of doing work is called _____.
I'LL MARK YOU AS THE BRAINIEST IF YOU HELP!! How did inventions of the Industrial Revolution affect the need for more factory labor? Your answer should be wri
Which food tastes acidic
A high development of the agonist-antagonist function is essential to the development of dynamic balance. a. True b. False
Find the missing number in this proportion.24 36 = 8 ?
A ________ person has the highest energy expenditure at rest. moderately physically active moderately sedentary very physically active, muscular very sedentary,
What demographic change led to president george w. bush's proposal to privatize social security? awnser?