How does /write corrupt an ini file? I'm using a loop to scan through a bunch of settings stored in an ini file and set certain matching lines to 0. As in "
It means that unless you fully know what you're doing, you may write something that has the wrong format (or write something valid in the wrong place), thus corrupting the ini file. /write itself will not corrupt anything, you just have to use it more carefully than /writeini when writing to ini files.
Why aren't you using /writeini though? It's specifically designed for ini files and will do much of the error checking for you.
Because I'm scanning through all the lines without regard to what [section] they're under. Like I just want to set any "value2" lines to 0 without touching anything else.