import java.io.* ;public class tt { public static void main(String[] args) throws IOException { String str ; if( args.length <= 0 ) { System.out.println( "Aufruf: tt <DateiName>" ) ; return ; } for( int i=0; i<args.length; i++ ) { BufferedReader d = new BufferedReader( new FileReader( args[0] ) ) ; OutputStreamWriter osw = new OutputStreamWriter( new FileOutputStream( "append.txt" , true )) ; while( (str = d.readLine()) != null ) { System.out.println( str ) ; osw.write( str+"\n" ) ; } osw.close(); d.close(); } }}