Node fs readFile Flashcards

1
Q

What is a directory?

A

A grouping of files into separate collections.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a relative file path?

A

Relative paths are relative to the current working directory and begin with a dot (./)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is an absolute file path?

A

An absolute file path starts at the root directory, which begins with a forward slash (/).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly