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

WILL GIVE BRAINLIEST :3 !
Hi can somebody please hlp me with this problem? the answer is supposed to be -5 but I keep on getting 2.
A block of pure silver is 0.81 cm by 5.44 cm by 2.22 cm. Find the volume of the block of silver.
Denise has 4 hours to spend training for an upcoming race. She completes her training by running full speed the distance of the race and walking back the same d
Use the Hertzsprung-Russell diagram to determine which condition describes each star. Use the arrows to help you locate the stars. 105 105 luminosity (solar uni
Why were there so many influences in Mughal cultural development?
what is 9/32 minus 1/16?
What is the main idea in The Plot Against People Article
Prepare Sangreens bank reconciliation at may 31, 2022
in the description of the features for a new car model it says that it can reach a maximum speed of 180 km/h. If it moves at that speed, how far will the car tr