Quote:
Originally Posted by CrAzY MaN
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.