View Single Post
Old 12-29-2007, 11:09 PM   #5 (permalink)
Alan @ CIT
Member of the Month
The Frequenter
Member of the Month Top Contributor 
 
Alan @ CIT's Avatar
 
Join Date: Apr 2005
Location: South UK
Posts: 483
Thanks: 51
Alan @ CIT is on a distinguished road
Default

For regular files (ie, files that don't have any PHP code that needs parsing), I would recommend using file_get_contents():

PHP Code:
$contents file_get_contents('my_text_file.txt');

// $contents will now contain everything that was in my_text_file.txt 
Alan
Send a message via MSN to Alan @ CIT
Alan @ CIT is offline  
Reply With Quote
The Following User Says Thank You to Alan @ CIT For This Useful Post:
Aaron (12-29-2007)