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 city in region 2 is located near 60 degrees N latitude and 10 degrees longitude
Which sentence does not contain any errors in capitalization? A. The scientists left today on an expedition to Antarctica. B. Our cat, named furball, sleeps in
9.14 to the nearest tenth
What is 0.18 as a fraction simplified
How Do You Factor 5xy - 10x
Cady combined 4/8 gallon of lemonade ,3/8 gallon of cranberry juice, and 6/8 gallon of soda water to make punch for a party . How many gallons of punch did he
Discuss the primary differences between how plants and animals deal with any TWO of the following three characteristics of life: cell structure metabolism repro
SOME ONE PLEASE COME PLEASE
Which sentence does not contain any errors? A. Weve already been to the amusement park three times this year. B. Weve' already been to the amusement park three
What element is found in liver and is needed to prevent anemia or tired blood