$file_parth ="data.txt"; $fd = fopen ($file_parth,"r"); while (!feof($fd)) { $wl =chop(fgets($fd,1024)); print "$wl
"; } fclose($fd);