$filename = 'toefl.txt';
$handle  = fopen ($filename, "r");
 
while (!feof ($handle))
{
    $buffer  = fgets($handle, 4096);

    $username = trim($buffer);
    $record=str_replace("\t","_",$username);
    $record = explode('_', $record);
}

fclose ($handle);