mIRC Home    About    Download    Register    News    Help

Print Thread
#7784 22/01/03 11:01 AM
Joined: Dec 2002
Posts: 397
A
ATMA Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Dec 2002
Posts: 397
how can i have the $read command read every line of txt in a file?

#7785 22/01/03 12:28 PM
Joined: Dec 2002
Posts: 209
V
Fjord artisan
Offline
Fjord artisan
V
Joined: Dec 2002
Posts: 209
you mean read all the lines with one call to $read, or read the line by line?
if the second, use $read(filename,linenumber)
like $read(bla.txt,1)

#7786 22/01/03 06:52 PM
L
littlecramp
littlecramp
L
unset %l %line
:again
inc %l
set %line $read(C:\MircMod\Mirc\res\findx.txt,%l)
if ( %line != $null ) { goto again }
else goto end
:end

#7787 22/01/03 10:17 PM
Joined: Dec 2002
Posts: 397
A
ATMA Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Dec 2002
Posts: 397
i cant get it to msg the lines to a person ( .msg $nick %p2p.line )

#7788 22/01/03 11:12 PM
Joined: Dec 2002
Posts: 1,893
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,893
Perhaps /play $nick C:\MircMod\Mirc\res\findx.txt


Link Copied to Clipboard