mIRC Home    About    Download    Register    News    Help

Print Thread
D
d0wn
d0wn
D
i tested on 6.16 and is working fine, but on 7.19 and 7.27 not.

i want to identify a text on a file and return to the text below

ex:
hello
hey

find "hello" and return to "hey"

Code:
alias testread {
  if ($read(test.txt,nw,hello)) { return $gettok($read(test.txt,n,$calc($readn +1)),1,32) }
}

Joined: Dec 2002
Posts: 2,884
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,884
This works fine for me here. Are you sure there isn't any whitespace on the "hello" line that is preventing the match (ie. "hello ")?

Joined: Mar 2010
Posts: 144
Vogon poet
Offline
Vogon poet
Joined: Mar 2010
Posts: 144
Try using Wildcards instead? (e.g: *Hello*)


Nothing...

Link Copied to Clipboard