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

Nasdaq, the American Stock Exchange, and the OTC market collectively form the
_____________ is the Brazillian festival that features brightly colored samba dancers and elaborate parades. Mardis Gras Carnival Day of the Dead Boxing Day
Solve the following quadratic equation. d²-5d+6=0
according to maslow, employment is an example of which type of need?
Determine the type of triangle that is drawn below.
A die is rolled twice. What is the probability of showing a 4 on both rolls?
A Price of a sweater was reduced from $40 to $25. By what percentage was the price of the sweater reduced?
Sunbathing/ not/ as/ much fun/ Swimming?
2/7 + 4/5 mixed forms
−3.45÷(−15) Write your answer as a decimal. Thank you