What delimits your email addresses in your text file? I just use a loop to parse them. You might not understand this but I'm not really the best at explaining my methods.
#reads the file
$readfile = file("text.txt");
#loops through the lines until $c is less than or equal to the line count
for ($c=0; $c<=count($readfile); $c++) {
#I use split to parse my values, the text file I used here was tab delimited
$unc = split("\t",$readfile[$c]);
#trims white spaces from the end and beginning of each value in the $unc array
$unc = array_map("trim", $unc);
#if your text file has say 3 columns of data that were tab delimited and you wanted to put them all into a string you would just do this.
$newStr = $unc[0] . $unc[1] . $unc[2] .$newStr
}
Hope that helps.