aurfalien@xxxxxxxxx wrote: > So here is my final test code, notice the check for ' ' in the if. > > Since I'm on Linux, this has to do with whats between the last LF and > EOF which is nothing but this nothing will get printed out. > > $file = fopen("somefile.txt", "r"); > while (! feof($file)) > { $tmp = trim(fgets($file)); if ($tmp != '') > { $names = $tmp; > } > print $names."sometext\n"; > } > fclose($file); > > -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php