Different fields

+1 Vani Manikkam · January 22, 2016
if i have a large files containing different data for example like
hanna |  | name
tom |  | name
age | | 11
sarah | | name
london| | address......

how can i retrieve only the names in order?????

Post a Reply


Oldest  Newest  Rating
0 Gary Whitney · January 22, 2016
Here is what I would do, based on what you stated.

1. Open the file and read a line at at time.
2. Search the line for name.
3. If it contains name use the string.split method.
4. Copy the first string in the resulting array to the container I intend to use in my program.
0 Vani Manikkam · January 22, 2016
can u provide me with a link please
its coding using java
  • 1

Java / Android Development


Very popular language used to create desktop applications, website applets, and Android apps.

Bucky Roberts Administrator