Demo: I/O Operations on a File¶
Two programs that print every call they make, with what it returned.
Run¶
Ask¶
- In how many calls does the name of the file appear?
- What do the other calls use instead, and why is it 3?
read()asked for 255 bytes. How many did it get, and what did the secondread()return?- Between the two programs, who was connected to the file?