title: java.io.File vs java.nio.Files which is the preferred in new code?
body: <p>While writing answers around SO, a user tried pointing out that <code>java.io.File</code> should not be used in new code, instead he argues that the the <em>new</em> object <code>java.nio.Files</code> should be used instead; he linked to <a href="http://java7fs.wikia.com/wiki/Why_File_sucks">this article</a>.</p>
  
  <p>Now I have been developing in Java for several years now, and have not heard this argument before; since reading his post I have been searching, and have not found many other sources that confirm this, and personally, I feel like many of the points argued in the article are weak and that if you know how to read them, errors thrown by the <em>File</em> class will generally tell you exactly what the issue is.</p>
  
  <p>As I am continually developing new code my question is this:</p>
  
  <p>Is this an active argument in the Java community? Is <a href="http://docs.oracle.com/javase/7/docs/api/java/nio/file/Files.html">Files</a> preferred over <a href="http://docs.oracle.com/javase/7/docs/api/java/io/File.html">File</a> for new code? What are the major advantages / disadvantages between the two?</p>