import java.io.*; /** * Die Klasse Liste soll einen text einlesen und als einzelne Strings ausgeben. */ public class Liste { public static String liste()throws Exception { InputStream stream = new FileInputStream ("test.tex"); InputStreamReader reader = new InputStreamReader (stream); String wort = ""; for (int c; (c = reader.read() ) !=-1;){ wort += c; } return wort; }}