var fs = require("fs"); // Synchronous read var data = fs.readFileSync('input.txt'); console.log("Synchronous read: " + data.toString());