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

(5x3 + 3x2 − 17x + 8) ÷ (x + 2)
Info on Ally Carter, please. And don't say, 'Go on Google' to get points.
3. The circle above has a radius of 4 cm. What is the area of the circle? Use = 3.14. A. 25.12 cm2 B. 100.48 cm2 C. 12.56 cm2 D. 50.24 cm 8.
Gun-related accidental deaths of children have decreased 90% since 1975? True or false?
Assume that y varies inversely as x. If y = -8 when x = -9, find y when x = 4. y = 18 y = 72 y = 4.5
reduce the answare11/13x3/22 to lowest term
The Korean War was a result of: A. North and South Korea taking different sides in the Cold War B. The United States conflict with Korea after WWII C. A revolut
name a quadrilateral that is also a rhombus
77,098 rounded to the nearest thousand
Cream of tartar has a pH that is (acidic or basic)