mIRC Home    About    Download    Register    News    Help

Print Thread
Cycling through an ini file. #250294 08/01/15 09:08 AM
Joined: Jan 2015
Posts: 1
M
Mishappp Offline OP
Mostly harmless
OP Offline
Mostly harmless
M
Joined: Jan 2015
Posts: 1
I have an ini file set up like so.


[#channel.user]
data=value

[#channel.user2]
data=value

The command is invoked on user input !cycle,... etc

Is there a way to while loop through the entire ini file and change all the data value of every entry?

Re: Cycling through an ini file. [Re: Mishappp] #250296 08/01/15 10:29 AM
Joined: Feb 2003
Posts: 2,662
Raccoon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,662
The $ini() function can iterate through your INI file, and used in conjunction with $readini() and /writeini can make the changes you're after.


Well. At least I won lunch.
Good philosophy, see good in bad, I like!