Cannot modify .ini file
#2
Hello and welcome to the forum Smile

You forgot to write the file back to the HDD.

It should look something like this when complete:
local IniFile = cIniFile()
if (IniFile:ReadFile("fractionlist.ini")) then
   IniFile:AddKeyName("hi")
   IniFile:AddValue("hi", "Value1", "32")
   IniFile:WriteFile("fractionlist.ini")
end

As you see you also don't have to use the key ID. You can just use the keyname directly.
Reply
Thanks given by:


Messages In This Thread
Cannot modify .ini file - by KaRoLak - 08-26-2015, 10:45 PM
RE: Cannot modify .ini file - by NiLSPACE - 08-26-2015, 10:54 PM
RE: Cannot modify .ini file - by xoft - 08-27-2015, 01:29 AM



Users browsing this thread: 1 Guest(s)