Reading file using fread in C

Viewed 331

I lack formal knowledge in Operating systems and C. My questions are as follows.

  1. When I try to read first single byte of a file using fread in C, does the entire disk block containing that byte is brought into memory or just the byte?
  2. If entire block is brought into memory, what happens on reading second byte since the block containing that byte is already in memory?.
  3. Is there significance in reading the file in size of disk blocks?
  4. Where is the read file block kept in memory?
1 Answers
Related