If you know definitively which entry in the section will be the last entry, you could...

code:
$nul = WriteProfileString("test.ini","section1", "key", "string"+@CRLF)