* I use the term, “directory” throughout this article. For clarification purposes, you may interchange the word, “folder” with “directory”.
File paths are a common stumbling block for novice programmers.
First, what’s the difference between a relative file path and an absolute file path? A relative path describes the location of a file relative to the current (working) directory*. An absolute path describes the location from the root directory. When learning to access data files through programming, we regularly use relative file paths.
Computer Science Teacher
Burnt Hills-Ballston Lake High School
Burnt Hills, New York