ights Reserved Sequential write operation #include <unistd.h> ssize_t write(int fildes, const void *buf, size_t nbyte); •Returns number of bytes actually written •Can only write to end of file (or file truncates)
ights Reserved Opening and Closing Files Open associates a file descriptor with a file or physical device File descriptor is an index into a table per process and can be inherited to child processes allowing sharing Should close open files Oflag access modes and status