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

The area of a rectangle is 256.5m.  If the length is 18m what is the perimeter of the rectangle?
How so I show my work with 624 Divided by 3
Which describes a spontaneous reaction? a. Positive ΔH b. Negative ΔH c. Positive ΔG d. Negative ΔG e. Positive ΔS
Trigonometry pile up. Anyone mind helping me out with this one?Trigonometry is not my strong point. Thanks!
One angle of a triangle is 33 degrees less than the other two angles. Find the angles of the triangle.
Two snails in the same class must also be in the same (A) order. (B) species. (C) genus. (D) family. (E) phylum
If two parents that are heterozygous (Aa) at a single locus give rise to offspring that are 25 percent AA, 50 percent Aa, and 25 percent aa, then all of the fol
solve 7x²+8x+1=0 using quadratic formula
Did the Louisiana purchase double or triple the size of the country
what is the relationship between a fundamental note and its overtones ?