Posted By

BenClayton on 12/22/10


Tagged


Versions (?)

Node.js: Syncronously read a file into a string


 / Published in: JavaScript
 

  1. var fs = require('fs');
  2. var file = fs.readFileSync(path, "utf8");
  3. console.log(file);

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: florachavezz on February 26, 2018

These services to write my paper are not "a rip off" or expensive, but like 'training wheels' on your first bicycle. Once you learn how to ride, you take off the 'training wheels', then move up to a bigger bicycle.

You need to login to post a comment.