Hi,
I have a file that the name ,family and countries are stored. if i'm interested to one of these fields, how can i retrieve them. for example i'm interested to see only family name of the users.
Printable View
Hi,
I have a file that the name ,family and countries are stored. if i'm interested to one of these fields, how can i retrieve them. for example i'm interested to see only family name of the users.
if the file is formatted in comma separated (CSV) or perhaps tab delimited, and one record per line, you could use a CSV parser to tokenize the line into record fields.
Or if it is XML file, parse the node containing the family name.
once you are able to find just the field you are interested in, you can have all of the things in the file printed out to System.out.println, or populated into a List<String> .?
thnx for ur help,i've got what to do and could solve it ;)