You can just use //write file.ini $crlf after each section when creating the file. That should work fine, but I haven't done a lot of testing with it.