passing encoding to fs.readfile code example Example: fs readfile encoding fs.readFile('/etc/passwd', 'utf8', callback);