mIRC Home    About    Download    Register    News    Help

Print Thread
$read issue #172428
10/03/07 12:45 AM
10/03/07 12:45 AM
Joined: Mar 2007
Posts: 1
T
Tuk Offline OP
Mostly harmless
Tuk  Offline OP
Mostly harmless
T

Joined: Mar 2007
Posts: 1
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.

Re: $read issue [Re: Tuk] #172429
10/03/07 12:55 AM
10/03/07 12:55 AM
Joined: Oct 2004
Posts: 8,327
MA, USA
Riamus2 Offline
Hoopy frood
Riamus2  Offline
Hoopy frood

Joined: Oct 2004
Posts: 8,327
MA, USA
/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.


Invision Support
#Invision on irc.irchighway.net
Re: $read issue [Re: Riamus2] #172430
10/03/07 01:00 AM
10/03/07 01:00 AM
Joined: Jan 2007
Posts: 259
K
Kardafol Offline
Fjord artisan
Kardafol  Offline
Fjord artisan
K

Joined: Jan 2007
Posts: 259
$read(file,t) will not use the first line as the number of total lines.


Those who can, cannot. Those who cannot, can.
Re: $read issue [Re: Kardafol] #172444
10/03/07 12:50 PM
10/03/07 12:50 PM
Joined: Oct 2004
Posts: 8,327
MA, USA
Riamus2 Offline
Hoopy frood
Riamus2  Offline
Hoopy frood

Joined: Oct 2004
Posts: 8,327
MA, USA
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.


Invision Support
#Invision on irc.irchighway.net