iEntry 10th Anniversary Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > PHP

Reply
 
LinkBack Thread Tools
Old November 6th, 2009, 12:14 PM   #1
New Member
 

Join Date: Oct 2006
Location: ny
Posts: 27
Thanks: 2
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 ruffy is on a distinguished road
How do I retrieve the last line of a file?

I go through a file using
the WHILE(! feof()) function.

During the while loop, I write
to a file ($wfile).

Once done, I need to make a
change in the last line of the output
file.

How do I do this?
ruffy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove last line in a file PHP/Store all lines except the last one ktsirig PHP 0 September 27th, 2009 08:33 PM
Edit a specific line of a file??? WebNinja PHP 5 February 10th, 2008 08:50 AM
reading a log file one line at a time depending on timestamp eon201 PHP 1 December 4th, 2007 02:54 AM
How to retrieve your wordpress password Pádraig The Café 10 August 9th, 2007 08:55 AM
xsl - how to retrieve IDREF data? VmusicV Other Languages 1 October 3rd, 2006 04:11 AM


Search Engine Optimization by vBSEO 3.2.0 RC8