Reading file using php
Simple php code for reading lines
Using the below PHP code you can easily read a txt file
< ?php
$file = fopen("mistonline.in.txt", "r") or exit("Unable to open file!");
//Output of the text file
while(!feof($file))
{
//<br> is used to break b/w lines
echo fgets($file). "<br />";
}
fclose($file);
?>
Related posts:

nice
wow, but how about if i want to read the file and add some record without any loss of data,..? thanks in advance
Jeremy thanks again for your response
Follow this link, it will be helpful and will clear your doubt i guess.