8
Exercise 2: Unix File I/O
(revision)
Write a C program that reads a file, block-by-block.
Command-line parameters:
block size in bytes
name of input file
Use low-level C operations:
open, read
.
Count and display how many blocks/bytes read.