View Single Post
Old 10-11-2004, 01:40 PM  
swedguy
Confirmed User
 
Industry Role:
Join Date: Jan 2002
Posts: 7,981
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")));
?>
swedguy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote