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

800 is 10 times as much as
Four friends buy 36 cookies for 12$.Each person contributes the following amount of money. friend#1-$2 friend#2-$3 friend#3-$4 freind#4-$3 Each person gets the
A. What type of organism has the simplest level of organization B. name an example of this type of organism.
Find the distance and displacement for this question. Jamie spins around 5times without moving any direction
In a company the ratio of men to women is 5:7. If there are 42 women calculate how many men there are.
how to solve for x in the following equation   x(a-b)=m(x-c)
A square patio has an area of 200 square feet. How long is each side of the patio to the nearest tenth?
what is the first sentence in the book the alternate penguin
The vertex form of the equation of a parabola is y = (x + 3)2 + 53. What is the standard form of the equation? A.y = x2 + 53x + 42 B.y = x2 + 6x + 62 C.y = x2 +
if you earn 20% more than I do, then I must earn 20% less than you. explain your answer