mIRC Home    About    Download    Register    News    Help

Print Thread
#267446 06/07/20 01:55 PM
Joined: Dec 2016
Posts: 18
A
apoio82 Offline OP
Pikka bird
OP Offline
Pikka bird
A
Joined: Dec 2016
Posts: 18

I need the command to read all the lines of an ini and return that information to the channel. Can someone help me?
The file has several lines written.

apoio82 #267450 06/07/20 09:33 PM
Joined: Jan 2004
Posts: 2,127
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 2,127
This does an echo instead of sending to channel, since that could cause you to be disconnected for flooding

//var %file $mircini , %section# 1 | while ($ini(%file,%section#)) { var %section $v1 , %item# 1 | while ($ini(%file,%section,%item#)) { var %item $v1 | echo -a [section] %section item= %item value: $readini(%file,n,%section,%item) | inc %item# } | echo -a === | inc -s %section# }


Link Copied to Clipboard