Manipulate files — CLI CAT Node.js

Shiori Soma
2 min readAug 19, 2021

fs object

The object which manipulates files is called “File System Module”.

Photo by S Migaj on Unsplash

Require fs module

var fs = require(‘fs’);

Read files

Loading the file

fs.readFile( fileName, encoding, function() {} )
  • The name of the file you load

--

--

Shiori Soma

I’m a front-end web developer based in Vancouver, studying CICCC, an web and mobile app development course. https://shiory602.github.io/portfolio/