All pastes #916147 Raw Edit

Vermischtes

public text v1 · immutable
#916147 ·published 2008-02-24 11:34 UTC
rendered paste body
package document;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.*;

public class DocumentCollection {

	public static String readin() throws IOException {
		String s = null;
		BufferedReader in = null;
		try {
			in = new BufferedReader(new InputStreamReader(new FileInputStream(
					"testdoc.txt")));
			s = in.readLine();
			
		}
		catch (IOException e){
			System.out.println("fehler");
		}
		finally {
			in.close();
		}

		return s;

	}



public static void main (String[] args){
	
	
	System.out.println(readin());
}
}