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:03   Re: [HELP] Replace a line from .ini
Reply With Quote #2

Quote:
Originally Posted by CrAzY MaN View Post
Is there any method to replace a whole line from a .ini file?

I want to search for a string in that line, and replace it.
The easiest thing will be to use dynamic arrays, add every line to the array, excluding the one you want to modify. For that 1, just put the replaced line on the array, close the file that was read, then write every array to the file using the a+ flag. You would have to do a loop like for(new i = 0; i < ArraySize(ArrayName); i++) and then ArrayGetString and put the string on the file.
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