UDF to Simplify Editing of INI files
Keywords: INI files editing UDF
Question:
I'm using IniWritePvt inside a loop to string together several INI files. The last remaining thing I'd like to accomplish is to add a blank line between the end of one section and the beginning of the next for readability.
Answer:
Here is some code to simplify editing INI files:
#definefunction modIniFile(ofile)
fs = filesize(ofile)
bb = binaryalloc(fs+100)
binaryread(bb, ofile)
binaryreplace(bb, "[", strcat(@crlf, "["), @true)
binarywrite(bb, ofile)
binaryfree(bb)
return
#endfunction