To read specific lines from a file, you can use something like
code:
$file = file('pathtoyourfile.txt');
$line1 = $fiile[0];
$line3 = $file[2];
Then use imagettftext to add the text in each position. You can specify the font, x and y positions in that tag.
Maybe not.