rendered paste bodypackage 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());
}
}