import java.io.*; import java.util.*; class ReadFlights { public static void main(String[] args) { try { BufferedReader flights = new BufferedReader(new FileReader("flug.tsv")); String line = new String(); while ((line = flights.readLine()) != null) { StringTokenizer st = new StringTokenizer(line, "\t"); System.out.println("--- flight record ---"); System.out.println("route # "+st.nextToken()); System.out.println("from "+st.nextToken()+" to "+st.nextToken()); System.out.println("on "+st.nextToken()+" at "+st.nextToken()); } } catch (IOException ioex) { System.out.println(ioex.getMessage()); ioex.printStackTrace(); } } }