I have a .txt file that has the following details:
ID^NAME^DESCRIPTION^IMAGES 123^test^Some text goes here^image_1.jpg,image_2.jpg 133^hello^some other test^
By far the best and simplest example of this I have come accross is quite simply the file() method.
$array = file("myfile"); foreach($array as $line) { echo $line; }
This will display all the lines in the file, this is also applicable for a remote URL.
Simple and clear.
REF : IBM PHP Parse