Properties p = new Properties();p.load(new FielInputStream("D:\\telefonbuch.txt"));String s = p.getProperty("55434", "nicht gefunden");
public String decodeData(String s, int stelle) { try { StringTokenizer st = new StringTokenizer(s, ";"); String sTemp; int i = 0; while (st.hasMoreTokens()) { sTemp = st.nextToken(); if (++i >= stelle) break; } return sTemp; } catch (Exception e) { return "Fehler"; }}