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

find the cube root of 740
It costs a dollars for an adult ticket to a reggae concert and s dollars for a student ticket. The difference between the cost of 12 adult tickets and 18 studen
Which of the following is a sign of inflammation? a. bruising b. swelling c. numbness d. temperature decrease
write 700/200 as a terminating decimal. then describe two methods for converting a mixed number to a decimal
which property is (3+5) times 6 = 3 + (5 times 6)
how can you tell that a fraction corresponds to a repating decimal and not a terminating decimal
What is the displacement after 6 seconds when a car is moving at 12m/s and coasts up a hill with a uniform aacceleration of -1.6 m/s^2
how many hydrogen bonds can a single water molecule form
Write 314,207 in expanded form
write 700/200 as a terminating decimal. then describe two methods for converting a mixed number to a decimal