Starting with the code which displays file contents and referring to the pages on FOREACH loops and splitting strings you need to access the contents from the page on file structure.
Take the text file data (firstname and surname on each line separated by tabs) and split it into individual names by doing this:
- use the FOREACH to get each line in turn and put it into a variable
- use EXPLODE to split the variable on the tab to give an array with firstname at index 0 and surname at 1
- use PRE and PRINT_R to test that this worked then remove them
- use ECHO to output the names in a nicer format such as "first name is: George, surname is Harrison"
You could also format the names in a better way. Put them in a list. To do this you would:
- ECHO the OL tag before the FOREACH line
- inside the FOREACH loop braces ECHO an LI element complete with the name
- after the closing FOREACH loop brace ECHO the closing OL tag
You could even put the data into an HTML table but that's more of a challenge!

