Raised This Month: $ Target: $400
 0% 

Solved [HELP] Replace a line from .ini


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
DarthMan
Veteran Member
Join Date: Aug 2011
Old 04-18-2018 , 04:16   Re: [HELP] Replace a line from .ini
Reply With Quote #4

Quote:
Originally Posted by Natsheh View Post
Yes, create a new file copy all the data from the old file to the new file, except that line you want to replace, remove the oldfile rename the new file name to the oldfile name or simply just use write_file( const file[], const data[], line=the line position you want to replace )

1st method is the solution for Cant write file access problem for some hosts.
Using array and the newer file system with fopen, fputs & fclose is the better way to go.
DarthMan 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 04:34.


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