Retrieving File and Directory Information

With the exception of a few oddballs, modern operating systems let you store files in directories (locations in a named hierarchy or tree) for better organization. (Just imagine the mess if everything was in one chaotic lump.) This and the following sections consider a path to be a directory or file name. You can refer to a path relative to another one (..\temp\bob.txt means go up the tree a step, down into the temp directory to the file called bob.txt) while others are absolute (/usr/local/bin/destroystuff tells how to go from the top of the tree all the way down to destroystuff).

0 0

Post a comment