title: The system cannot find the path specified with FileWriter
body: <p>I have this code:</p>
  
  <pre><code>private static void saveMetricsToCSV(String fileName, double[] metrics) {
          try {
              FileWriter fWriter = new FileWriter(
                      System.getProperty("user.dir") + "\\output\\" +
                      fileTimestamp + "_" + fileDBSize + "-" + fileName + ".csv"
              );
  
              BufferedWriter csvFile = new BufferedWriter(fWriter);
  
              for(int i = 0; i &lt; 4; i++) {
                  for(int j = 0; j &lt; 5; j++) {
                      csvFile.write(String.format("%,10f;", metrics[i+j]));
                  }
  
                  csvFile.write(System.getProperty("line.separator"));
              }
  
              csvFile.close();
          } catch(IOException e) {
              System.out.println(e.getMessage());
          }
      }
  </code></pre>
  
  <p>But I get this error:</p>
  
  <blockquote>
    <p>C:\Users\Nazgulled\Documents\Workspace\Só
    Amigos\output\1274715228419_5000-List-ImportDatabase.csv
    (The system cannot find the path
    specified)</p>
  </blockquote>
  
  <p>Any idea why?</p>
  
  <p>I'm using NetBeans on Windows 7 if it matters...</p>