title: Node.JS fs.WriteFile path as a string
body: <p>I am trying to save a simple file to a directory other then my root directory, but it seems to error out when using a variable instead of a direct string.Has anyone tried using a variable or see if i am missing something.
  Thanks</p>
  
  <pre><code>var procedures = "SomeString";
  var moveTo = "C:/SavedFiles";
  //////////////////
  fs.writeFile(moveTo ,procedures, function (err) {
              if (err) {
                  return console.log(err);
              }
              console.log("The file was saved!");
          });`
  </code></pre>