We read the file asynchronously.
fs.readFile('./path', function(err, file){})
In callback, we get the result. There is a need to perform various manipulations with the contents of the file, for example:
function addOne(file){console.log(file+'1')} function addSmt(file, smt){console.log(file+smt)}
In other words, the file should be read once and only once, and then work with its contents as needed.