import java.io.* ;public class Cat { public static void main(String[] args) throws IOException { String str ; if( args.length <= 0 ) { System.out.println( "Aufruf: Cat <DateiName>" ) ; return ; } BufferedReader br = new BufferedReader( new FileReader( args[0] ) ) ; while( (str = br.readLine()) != null ) { System.out.println( str ) ; } br.close(); }}