1 Reply Latest reply on Jul 21, 2015 10:52 AM by DiegoV_Intel

    text file - edison


      how to create a text file in xdk (edison intel)@

        • 1. Re: text file - edison

          Hi aviel,


          The Intel XDK allows writing Node.js scripts, so you can use Node.js sample codes with it. I found the following site where there is a description about how to write files in Node.js:  How do I write files in node.js? - docs.nodejitsu.com


          I've tested the code below using the XDK and it worked:

          fs = require('fs');
          fs.writeFile('/home/helloworld.txt', 'Hello World!', function (err) {
            if (err) return console.log(err);
            console.log('Hello World > helloworld.txt');


          You will find more information in the site I linked above.