Information Communication Technology ICT – 21 Website authoring | e-Consult
21 Website authoring (1 questions)
Relative File Path: A relative file path specifies the location of a file in relation to the current working directory. It's a path that doesn't start from the root directory of the file system. In the example provided, a relative path would be Documents/report.docx. This assumes the current working directory is the user's profile directory. The path is valid regardless of where the current working directory is.
Absolute File Path: An absolute file path specifies the exact location of a file, starting from the root directory of the file system. In the example, an absolute path would be C:\Users\YourUsername\Documents\report.docx (on Windows) or /home/yourusername/Documents/report.docx (on Linux/macOS). It always points to the same location on the file system, regardless of the current working directory.