Quote:
Originally posted by psili
You dumping to an HTML window ?
Try this:
$fileToGrab = "juicy.txt";
print ( preg_replace("/\n/","<br>",implode("",file($fileToGrab))) );
might not be the most elegant, but it should work.
|
Or even easier, use
nl2br()
<?
print nl2br(implode("",file("juicy.txt")));
?>