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

What Does "Be Careful What You Wish for" Mean?
The curtis car traveled an average of 21 miles per gallon of gas. At that rate, how far could the car travel on a full tank of 21 gallons
6010 males did a survey and 59.7% choose vanilla how many choose chocolate
The difference of seven halves and six quarters is multiplied by negative two fifths. Find this rational number.
A right prism has square bases with edges that are three times as long as the lateral edges. The prism's total area is 750 m squared. Find the volume.
A $20,000 deposit was placed in a bank paying 5.75% interest compounded quarterly. After 12 months, how much interest was earned.
The difference of seven halves and six quarters is multiplied by negative two fifths. Find this rational number.
For English, I am writing a diamante poem. My nouns are chocolate and lemon, and I've thought of the adjectives but I can't think of the verbs for chocolate. Ca
A cylinder has a base diameter of 10cm and a height of 14cm. What is its volume in cubic cm, to the nearest tenths place?
When you look at green dots with a red filter what color did you see?