Try this, ti worked for me.

If Exist($IniFile)
$result = WriteProfileString ("$IniFile", "$server", "Uptime", "$day")