mIRC Home    About    Download    Register    News    Help

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

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.

Re: need help :) [Re: apoio82] #267450 06/07/20 09:33 PM
Joined: Jan 2004
Posts: 1,339
maroon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 1,339
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# }