mIRC Homepage
Posted By: Tuk $read issue - 10/03/07 12:45 AM
hi, i noticed this bug in lastest mirc 6.x
mirc cannot read 1st line ' $read(file.txt,1) ' if
file.txt beginning with numbers, my txt:

---------------------------- cut here
02
04
08
---------------------------- cut here
$read(txt,1) return 04 and YES! $(read(txt,ZERO) return "2"
isn't "02".

Best regards Khaled and sorry for my poor english,

Tuk.
Posted By: Riamus2 Re: $read issue - 10/03/07 12:55 AM
/help $read

The first line, if it's a number, is assumed to be the number of lines in the file. There is a switch to prevent this, but I don't have mIRC in front of me to look it up. Check the help file and you should find it.
Posted By: Kardafol Re: $read issue - 10/03/07 01:00 AM
$read(file,t) will not use the first line as the number of total lines.
Posted By: Riamus2 Re: $read issue - 10/03/07 12:50 PM
That was it. I had "t" stuck in my head, but I didn't think I was right and didn't want to state the wrong thing. Thanks for checking/posting.
© mIRC Discussion Forums