Professional Documents
Culture Documents
Absolute Path: The path of a file or directory from the top level of directory
structure.
For Example: E:\Users\Public\Desktop\Files\myfile.docx
Relative Path: The path of a file relative to current working directory which is
denoted as dot(.).
Notation for current working directory – dot(.)
Notation for parent directory – two dots(..)
For Example- If we are currently working in Desktop directory. Then the
relative path for file mentioned in previous example above will be –
.\Files\myfile.docx
1. Write a program to read data from a file
using absolute path of file.