title: Create a serverside file in Meteor
body: <p>I was wondering how to write files in Meteor to the server. I was looking at this NodeJS code, but it wasn't working when I tried it in the server javascript code. </p>
  
  <pre><code>    var fs = require('fs');
      fs.writeFile("/client/test", "Hey there!", function(err) {
      if(err)
          console.log(err);
      else
          console.log("The file was saved!");
      }); 
  </code></pre>
  
  <p>It was saying that require wasn't defined. Anyways, does anybody know how to write files to the server in Meteor?</p>