What is the difference between absolute name and relative nameof files?
Answer
Absolute Name
1. It is used to address a specificfile/folder in the system, irrespective of the current workingdirectory.
2. It is always written as a full path(including Drive letter in a file system).
Relative Name
1. It is used to address a file/folderin the system with the reference of the current workingdirectory.
2. It is written, with the help ofreference.
Cases of example
Let’s say we have two disk partitions C, D.
C
|—-Documents/myfile.txt
|—-Download/Sample
|—-Pictures
D
|—-MyFolder/newfile.txt
Our working directory is “C:Documents”.
To access the file myfile.txt we can
OR
OR