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

3.5 hours; $10 What is the unit rate per hour?
The dance committee hired a DJ for the fall dance. The DJ charges $125 per hour plus $55 for an assistant. The committee wants to keep the total cost under $600
which is greater 0.64 or 9/10??
wendi says that the product 5x400 will have 2 zeros. is she correct explain
what types of services does our government provide at the national, state, and local levels
What is the answer for this exercises 1•2•3•4•.......•15=
how does using a bar diagram help you in predicting the solution to ratio and rate problems?
m^2 + 8m - 9 = 0 Must be factored completely
What is the only hemisphere and watch Antarctica has no land
The investment most affected by local conditions is: A. real estate B. savings accounts C. mutual funds D. Treasury bills