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

hola what hermoso means?
The sum of two numbers is 40 and the difference is 8. What are the numbers?
Find the final temperature when 10 grams of aluminum at 130 c mixes with 200 grams of water at 25 c. assume no water is lost as water vapor. specific heat value
Which situation can be represented by the inequality 150 ≤ 15x + 55 ? a. Thomas has 15 baseball cards in his collection. He will buy 55 new ones every month. Th
The functions f(x) and g(x) are shown on the graph. f(x) = |x| What is g(x)? A.g(x)=|x|+3 B.g(x)=|x-3| C.g(x)=|x|-3 D.g(x)=|x+3|
Ronnie kicks a playground ball with an initial velocity of 16 m/s at an angle of 40° relative to the ground. what is the approximate horizontal component of the
For which distributions is the median the best measure of center? Select each correct answer.
Can someone pls help me ! 20 points
Which statement describes the location of a chromosome? in the nucleus in the DNA in a gene in a nucleotide
Why can't you let the past go? Multiple in-depth answers, I don't want a half attempted reply. I want what stops us from moving forward and why, please and than