All pastes #204540 Raw Edit

Unnamed

public text v1 · immutable
#204540 ·published 2006-10-16 01:26 UTC
rendered paste body
 public static void main( String[] args ) {

       String line="";
       FileReader file;
       BufferedReader reader=null;

       try {
          file = new FileReader(args[1]);
          reader = new BufferedReader(file);
       }catch(FileNotFoundException e) {
          System.err.println("File isn't found" + e.getMessage());
          System.exit(1);
        }
       try {
       line = reader.readLine();
       }catch(IOException ioe) {
          System.err.println("IO error" + ioe.getMessage());
          System.exit(1);
       }
       System.out.println(line);

    }