Advertisement
inferno719

Untitled

Sep 30th, 2011
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.63 KB | None | 0 0
  1. {
  2.     /**
  3.      * @param args the command line arguments
  4.      */
  5.     public static void main(String[] args) throws IOException
  6.     {
  7.         System.out.println("Main starts");
  8.         //String filename = "input.txt";
  9.         // TODO code application logic here
  10.        
  11.         System.out.println("Reading start.");
  12.         File file = new File("input.txt");
  13.         Scanner in = new Scanner(file);
  14.         //BufferedReader in2 = new BufferedReader(new FileReader("C:\\input.txt"));
  15.         String text = in.nextLine();
  16.         System.out.println(text);
  17.         in.close();
  18.         //System.out.println(in);
  19.        
  20.     }
  21. }
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement