Friday, 9 June 2017

Hello,I have ex1.js and ex2.js. And in ex2.js I want to get variable which one is in ex1.js.Thanks in advance

I can read the file,but I want to get exactly this var Value.

 var fs = require('fs');
    var readMe = fs.readFileSync('path', 'utf8');
    console.log(readMe); 



via xaqan

No comments:

Post a Comment