The Node.js File System module allows you to work with the file system on your computer.
Node.js has a set of built-in modules which you can use without any further installation. Similarly **File System module** contains a set of functions which are required to perform different operations on files such as read and write operation.
In order to to include a module, use the ```require()``` function with the name of the module.
```javascript
const fs = require('fs');
```
Common use for the File System module:
* Read files
* Create files
* Update files
* Delete files
* Rename files
## Reading a file
The ```fs.readFile()``` method is used to read file on your computer. It takes three arguments - filename, encoding and a call back function.
Node.js code to read file from your computer and return the content to the console.
* You should have Node.js installed in your computer.
* Create a file *app.js* and paste the above code.
* Now open your console in the working directory and execute the command ``` node app.js ```.
*Note* : If file does not exist then the ```fs.writeFile()``` method creates a file and writes the content into it. On the contrary if the file exists then it overwrites the content in the file.