title: FS won't create file
body: <p>I want to create a simple console application that would compare two files based on their filename and output the result into a new file.</p>
  
  <p>My problem is that NodeJS refuses to create a new file if it doesn't exist, and acts like it doesn't exist even if I create it manually.</p>
  
  <pre><code>compare = (data) -&gt; # data is being read from process.stdin
    fname = "#{data}_compare.txt"
    stdout.write "Attempting to compare #{data}" # stdout = process.stdout
    fs.writeFileSync fname, 'A test.'
  </code></pre>
  
  <p>NodeJS returns <code>Error: ENOENT, no such file or directory</code> in both cases (when I want it to create the file, as well as when the file already exists).</p>
  
  <p>I want the file to be created in the same folder from where the application is run, so path shouldn't be an issue at all (and indeed is correct in the error message).</p>
  
  <p>I tried to specify <code>{flags: 'w'}</code> too, but as far as I know, that's the default value anyways, so it changed noting.</p>
  
  <p>I'm running on Windows 10, tried running command prompt under administrator too, still nothing. Any idea what could be causing this?</p>