I create a text file with:
$address .= $row['customerEmail']."\n";
and then I use php to download the file with:
<?
$file = "$file";
header("Content-disposition: attachment; filename=$file");
header("Content-type: application/text");
header("Content-Length: ".filesize($file));
header("Pragma: no-cache");
header("Expires: 0");
readfile($file);
?>
It works fine except that when I open up the file, it has a block where the \n was. How do I get rid of that and just make it put the next word on the next line without the block?