I have a text file named abc.txt. The file have info like this
jani
stay in USA
karim
stay in France
fara
stay in UK
The code needs to read the file from beginning and read the first line and put it to in a string let nameString. Then it read the second line and put the info to a another string let name addressString. Then it read the third line and put the info into nameString and then forth line and put the info as addressString. Like this way it will continue up to the end of file. I have to put those information on anywhere else. So, I need all the name and address in a for loop.
Can anybody pls help me to collect this info.
Thanks in advance
Riad
Here we go
Make sense?