So I'll work on the assumption that you mean you have a file (let's call it mypictures.txt) and the first line in it says
picture.gif, me.jpg, examples.gif
I'm also assuming that you want to read this file and get the picture names out, then display them using HTML. Going on a lot of assumptions, but here goes...
$fcontents = file('mypictures.txt');
$pictures = explode(", ", $fcontents[0]);
$picturesLen = count($pictures);
for ($i=0;$<$picturesLen;$i++)
echo "<img src='" . $pictures[$i] . "' border=0>";
Hope that's what you wanted!