mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2006
Posts: 46
D
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Dec 2006
Posts: 46
I have a script that stores info in an ini file. Is there a way to read the ini file, and if the name exists already, replace it with the new info?

Code:
[/code]on *:text:!own & *:#table:{
  writeini phonebook.ini owners $2 $3-
  msg # added $3- as the owner of $2
}[code]


I would like to be able to read the ini and see if the owners name is there already, and if it is place the $2

Thanks

Last edited by danzigrules; 03/03/07 06:16 PM.
Joined: Jan 2007
Posts: 1,156
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
Have you read about $readini and /writeini? Also check out $ini.


Link Copied to Clipboard