Advertisement
thenewboston

Java Programming Tutorial - 79 - Creating Files

Aug 22nd, 2014
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.29 KB | None | 0 0
  1. import java.util.Formatter;
  2.  
  3. class FirstFile {
  4.    public static void main(String args[ ]) {
  5.       final Formatter f;
  6.      
  7.       try {
  8.          f = new Formatter("/home/asus/5.txt");
  9.       } catch (Exception e) {
  10.          System.out.println("you have an error");  
  11.       }
  12.    }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement