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

Hypothesis: South America and Africa were once part of the same large continent.Which study would most likely be used to investigate this hypothesis? A. compari
angola was colonized by what european country
From life on the mississippi : which of the following extended metaphors encompasses all of the narrator s education?
Paul needs to find 310% of 72. Which expression should he use?
How to find subject and verb in sentence the ripening tomatoes glistened on the sunny windowsill
Describe the types of animals and vegetation you might find in the Alpine biome
What finally motivates john proctor to confess to his affair with abigail williams?
How does Rousseau's Social Contract theory justify the need of social "safety nets" such as America's educational system?
After World War II, Stalin said that the Soviet Union needed a “buffer zone” to protect it from attack. This idea resulted in the USSR expanding its control int
10 fours-1 four = blank x 4