View unanswered posts | View active topics It is currently Sun Dec 17, 2017 8:31 pm



Reply to topic  [ 2 posts ] 
 File manipulation 
Author Message
Junior Member

Joined: Sat Oct 01, 2005 8:03 am
Posts: 2
Post 
Plz tell me how to Extract a portion off a file using a particular string ...
Regds,
Gopi


Sat Oct 22, 2005 10:44 am
Report this post
Profile
Junior Member

Joined: Fri Dec 02, 2005 8:23 pm
Posts: 6
Post 
To read the file into a string and remove the \n that it adds use . . .

Code:
$myStr = trim(file_get_contents("my_file.txt"));


See
file_get_contents at php.net for to see how to use the sub string options.


Fri Dec 02, 2005 11:23 pm
Report this post
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.