Bifalgorithm post · Computer science one · Paths
How do file names, extensions, and working directories affect file paths?
How do file names, extensions, and working directories affect file paths? (Computer science one · Paths) — "When opening a file on a file system, it is necessa…
Ideas in this flowchart
- Opening a file requires identifying the file and locating it in the file system.
- The file is typically identified by specifying at least its name.
- Files often have extensions that indicate their file type.
- Examples include .txt for text files and .html for HTML files.
- File extensions are organizational labels and do not determine what data is stored.
- The file path is more important for locating the file.
- If no path is specified, the file is implicitly sought in the Current Working Directory (CWD).
- The CWD is the directory in which the program is executing.
- Opening data.txt without a path opens the file from the program's execution directory.