[cs33211] Project 3 - filedes

Mikhail Nesterenko mikhail at cs.kent.edu
Tue Nov 27 10:35:55 EST 2012


Before you can carry out operations with the file, you have to open
it function open()" returns a file descriptor that you can use with
pwrite() and pread()  See 

	 man 2 open

For more details. Note that for low-level writing operations like
pwrite() and pread() you cannot use C++ streams.

Thanks,
--
Mikhail

> 
> How can I get the file descriptor for my disk file?
> pwrite() and pread() both require it.  I'm running on Mac OSX


More information about the cs33211 mailing list