Created
January 24, 2016 06:15
-
-
Save ajduke/7ca1c2e07f8dccf9e081 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fs = require("fs"); | |
path = "data/myfile.txt"; | |
data = "This content is written from Node program"; | |
result =fs.writeFileSync(path, data); | |
console.log('written contents are : ' + result); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment