[snip] i want the vertical bar '|'. [/snip] http://www.php.net/explode
$theLine = fgets($theFile, 1024); $arrayLine = explode("|", $theLine); Now each item from the line is in $arrayLine[0] .... $arrayLine[n] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php