title: Reading from a file in java
body: <p>Ok so I use this code to read from files but it returns me the filename.</p>
  
  <pre><code>public void read(String file){
      Scanner sc = new Scanner(file);
      System.out.println(sc.nextInt());
      sc.close();
  }
  </code></pre>
  
  <p>And I want to know how can I check to see if the file is unexistent before reading from it.</p>