title: Node.js 'fs' - More efficient way to create file + clear file
body: <p>At the moment I am using <code>fs.createWriteStream(filePath)</code> to do two things:</p>
  
  <ol>
  <li>Create the file if it doesn't exist</li>
  <li>Clear/delete the contents of the file</li>
  </ol>
  
  <p>However, I never actually write to the stream, so I am not really using it. I am wondering how kosher this is, and if I should use a more efficient or more explicit method of creating the file if it doesn't exist and clearing the file out. Any ideas?</p>