mIRC Home    About    Download    Register    News    Help

Print Thread
#181404 22/07/07 09:47 PM
Joined: Aug 2006
Posts: 3
_
_killah Offline OP
Self-satisified door
OP Offline
Self-satisified door
_
Joined: Aug 2006
Posts: 3
Hi
How do i get $read to read word number 2 on each line in file "lol.txt" for example.
I've tried some things but cant figure it out.

for example

//msg nick Hello, you are $read(lol.txt)<-- that should be word $2 of a random line in the file.

if line in file is "if you are lol" it should be "/msg nick hello you are you"

Thx


The Darkness has eyes and they are mine. >.<
_killah #181405 22/07/07 09:52 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Code:
$gettok($read(lol.txt),2,32)


Link Copied to Clipboard