July 2022
Intermediate to advanced
304 pages
7h 6m
English
In this chapter, we explore how command line arguments allow the operating system to pass information to a program when the program is invoked. We also take a look at another feature that’s close to the operating system: the raw input/output (I/O) system. This system lets us precisely control how a program performs I/O. Done right, it can be a tremendous asset to a program.
We’ll use the raw I/O system to perform a high-speed file copy. This program will also use command line arguments to specify the source and destination files, so we don’t need to hardcode them into the program.
Read now
Unlock full access