I'd like to create a small script to simply read from a text file and display the contents, sorta.
I want to have the text file have a bunch of pairs of information like:
images/square.gif
This is a square
images/circle.gif
This is a cirlce
images/polygon.jpg
This is a polygon
etc, then have a script read the file name and description and display them like:
<img src=images/square.gif><br>This is a square
<br><br>
<img src=images/circle.gif><br>This is a circle
<br><br>
<img src=images/polygon.jpg><br>This is a polygon
I just need to create a for loop to read and print out the info until the end of the text file.
Any help? =)