read and write flag in node js code example Example: fs readfile encoding fs.readFile('/etc/passwd', 'utf8', callback);