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

Which position or group of stakeholders has the most power in your organization or one with which you are familiar? Is their power obtained through formal posit
y=x^4-x^3-5x^2-x-6 Show steps
How did the Trail of Tears affect the Native Americans emotionally?
Write an equation in slope-intercept form for the line with slope 1/3 and y- intercept -3
find arc QS BRAINLIEST GIVEN
PLEASE answer my question correctly6 to 10​
the scoop of an excavator holds 26 ft³of sand. if the capacity of a freight car is 39 tons of sand and we know that 1 ft³ of sand weighs 0.05 ton how many freig
I want translation of these sentences.
heres some easy math!
Please help me with this math problem!! Will give brainliest!! :)