PPT Slide
Programmer InterfaceFile Manipulation
- Files are sequences of bytes.
- Files are organized in tree-structured directories.
- Unix contains both absolute and relative path names.
- An absolute path name is one that contains the entire path starting at the root directory.
- /home/mhtay/CPSC-137/demonstration
- A relative path name is one that just contains the directory that you are in at that time.
- Suppose your working directory is mhtay and CPSC-137 is a subdirectory in that directory
- relative pathname to the directory should be only “CPSC-137”