mIRC Homepage
Posted By: apoio82 need help :) - 06/07/20 01:55 PM

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.
Posted By: maroon Re: need help :) - 06/07/20 09:33 PM
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# }
© mIRC Discussion Forums