its just for php beginners.
simple it read a line from path read/new.txt ( a filemay be .txt or any extension).
world cooolstar Pakistan
cooolstar@gmail.com
<?php
$linenum = 2; //will read 2nd line of the file.
$path = "read/new.txt";
$handle = fopen($path, "r");
$lines=file($path); //$lines is an array
echo htmlentities($lines[$linenum]);
?>