Node fs readFile Flashcards
1
Q
What is a directory?
A
A grouping of files into separate collections.
2
Q
What is a relative file path?
A
Relative paths are relative to the current working directory and begin with a dot (./)
3
Q
What is an absolute file path?
A
An absolute file path starts at the root directory, which begins with a forward slash (/).
4
Q
What module does Node.js include for manipulating the file system?
A
The fs module, which is called using the require function with the argument ‘fs’ passed in.