Use ini files to write to and read from:

http://en.wikichip.org/wiki/mirc/ini_files

Play around with /writeini and $readini, and open the .ini file to see how it's structured -- after that you will probably realize how to solve this problem

Last edited by Sakana; 05/05/16 07:38 AM.