I am creating a simple program to data read from a text file. The file stores information about a person, with the name, age and a number on each line:
Eg: File form
If you want to do in this way, you can try doing like this :
Fixing the way data will be present in the file, say
firstName.lastName.age.number;
Then you can write code to read data upto . and store it in a variable (you will be knowing what it is meant for) and after ";" there will be second entry.