readFile.sync( file[, options] )

The function accepts the same options and has the same defaults as fs.readFileSync().

Notes

The difference between this API and fs.readFileSync() is that fs.readFileSync() will throw if an error is encountered (e.g., if given a non-existent path) and this API will return an error. Hence, the following anti-pattern