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 fertile central valley region is located in California. a. True b. False
A spy novel would probably be a novel of _____. romance incident character stream-of-consciousness
Use of the word congregation in the Tyndale Bible referred to A. the clergy. B. the faithful. C. the Puritans. D. the reformers.
Which equation could be used to solve the problem? Carly read 600 pages in 5 days. How many pages per day did she read (n)? A.n = 600 pages ÷ 5 days B.n = 600
AIDS occurs when HIV destroys the immune system. Please select the best answer from the choices provided. T F
A person running for political office is called a:
Which best describes the location of the line of reflection? A.2 units above point A B.2 units below point A C.4 units to the left of point A D.4 units to the r
Name one reason why Sevilla, Spain is famous
what is harlem renaissance
The world’s supply of freshwater is increasing. Please select the best answer from the choices provided T F