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

(HELP ASAP PLEASE!!) Two brothers went shopping at a back-to-school sale where all shirts were the same price, and all the shorts too. The younger brother spent
The local hamburger shop sold a combined total of 625 hamburgers and cheeseburgers on Friday . There were 75 fewer cheeseburgers sold than hamburgers how many h
The coordinates of points A and L are -4 and 12, respectively. What is the coordinate of the midpoint between them? A. 4 B. 8 C. 6 D. 2
need the answer please.
When the solution concentration on the outside of the cell is greater than the solution concentrate on the inside of the cell what type of solution is the cell
_____ signs tell you how to drive safely in work zones. A. Regulatory B. Warning C. Guide D. Construction
which concept is stressed by symbolic interactionists?
Describe the main reasons for the great economic growth in the United States following the Civil War
Please Help Quickly!! What is the first step to prove that 9^n - 4^n is divisible by 5?
PLEASE HELP!!If the circle graph below represents the responses from 350 people, how many people chose silver as their favorite car color?Black-25%White-10%Silv