mIRC Homepage
Posted By: Axodious Can't read semi-colons in init files. - 16/05/08 03:40 PM
If I write a line to an ini file lets say /writeini test.ini testsection ;p; test

I can't do $readini(test.ini,testsection,;p;) I get "Insufficient Parameters".
Posted By: Lpfix5 Re: Can't read semi-colons in init files. - 16/05/08 06:42 PM
I do believe that you can't read it because in a script it acts as a comment out

I could be wrong but to my knowledge semi-colons are used to comment out and im not to sure how it picks up from $readini even using CHARSET 59 can't even suffice.

You could pull the item using $ini(file,1,1) but as for the data can't pull out unless im doing something wrong.
Posted By: Horstl Re: Can't read semi-colons in init files. - 16/05/08 07:49 PM
the ; indicates a comment in the ini file itself: http://en.wikipedia.org/wiki/INI_file

to get arround this, for example prefix all items with a dummy char:
//writeini test.ini testsection $+(•,;testitem) ;testvalue
//echo -a $readini(test.ini,testsection,$+(•,;testitem))
© mIRC Discussion Forums