Hi,
Its better to go for XML or JSON because many libraries are available..
If yo still need to go for txt file...
Then you can go for using StringTokenizer or BufferedReader.
After reading it in to string use "split" extract the content or data.
BufferedReader br = new BufferedReader(new FileReader(file));
String line;
while ((line = br.readLine()) != null) {
}
br.close();
You can also use OpenCSV library for working with CSV files..
Thanks,
Ullas Krishnan