All pastes #220063 Raw Edit

Something

public text v1 · immutable
#220063 ·published 2006-10-25 00:25 UTC
rendered paste body
import java.io.*;


public class file {

   public static void main ( String[] args ) {

     FileReader file=null;
     BufferedReader reader=null;
     String line=null;
     try{

     file = new FileReader("data");

    } catch(FileNotFoundException e) {
        System.err.println("file isn't found");
     }

     reader = new BufferedReader(file);
    try{
     line = reader.readLine();
     }catch(IOException ioe) {
        System.err.println("IO error");
     }

     System.out.println(line);


   }
}