Monday, 3 April 2017

Uncaught TypeError: fs.readFileSync is not a function in console

I using below code for reading file from my local system:

        var text = fs.readFileSync("./men.text");
        var textByLine = text.split("\n")
        console.log(textByLine);



via Himanshu Pandey

No comments:

Post a Comment