Raised This Month: $ Target: $400
 0% 

New file natives...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
pRED*
Join Date: Dec 2006
Old 05-29-2007 , 02:21   Re: New file natives...
Reply With Quote #6

AFAIK the old file natives open a file, seek to the file you specified do the read/write and then close the file. Sequentially reading to find the line you want is a slow task..

Try using ftell and fseek to overwrite a line (I've never tried it but I think it might work), but I think i've read somewhere that the only way to do this is to create a backup file and sequentially copy lines from the file into the backup. When you reach the file you want to modify do the modification and copy that across. Once you reach the end of the file, delete it and rename the backup to the original name.
pRED* is offline
 



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

Forum Jump


All times are GMT -4. The time now is 10:38.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode