title: Text File Writing Not Working
body: <p>I have been experimenting with writing to text files for output instead of <code>System.out.println()</code>. When I try this, though, nothing seems to be written. What is the issue with my code?</p>
  
  <pre><code>    try{
          List&lt;String&gt; lines = Arrays.asList("Data Goes Here");
          Path file = Paths.get("output.txt");
          Files.write(file, lines, Charset.forName("UTF-8"));
          }
  
      catch (IOException ex) {
          System.out.println("Frick, something broke. Sorry folks, go home.");
          }
  </code></pre>