mIRC Home    About    Download    Register    News    Help

Print Thread
#10283 08/02/03 08:33 PM
Joined: Dec 2002
Posts: 111
E
Vogon poet
OP Offline
Vogon poet
E
Joined: Dec 2002
Posts: 111
how would i pull data out of a file in a directory? im having problems with it:

if ($1 == !randomline) {
/set %seennick $2
/set %randomline $read(data\%seennick $+ .txt)
if (%randomline == $null) {
msg %chanstat I have no data for that nickname yet.
halt
}
msg %chanstat Random line that $2 has said: %randomline
}

i wanna pull data out of the %seennick $+ .txt file, and its in the data directory. whats the correct syntax for it? thanks!

#10284 08/02/03 08:51 PM
Joined: Dec 2002
Posts: 94
K
Babel fish
Offline
Babel fish
K
Joined: Dec 2002
Posts: 94
try
Code:
/set %randomline $read(data\ $+ %seennick $+ .txt)



Lets get dirty

Link Copied to Clipboard