mIRC Home    About    Download    Register    News    Help

Print Thread
#28652 08/06/03 09:44 AM
Joined: Mar 2003
Posts: 272
C
Fjord artisan
OP Offline
Fjord artisan
C
Joined: Mar 2003
Posts: 272
$read(filename, [ntswfL], [matchtext], N)

$read(filename, f, *whatever*, 0)
Would return the total times *whatever* was found in filename.

$read(filename, f, *whatever*, 1)
Would return the first line found contatining *whatever*

$read(filename, fL, *whatever*, 1)
Would return on which line the first occurence of *whatever* was found.

Just an idea..

#28653 08/06/03 12:47 PM
Joined: Jan 2003
Posts: 247
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Jan 2003
Posts: 247
The 2 last suggestions, you can do it with a combination of $read() with the "w" switch and then $readn returns de line number where it found the match.

And i guess you could script the first one using /filter, but it would be direct with a $read switch


Link Copied to Clipboard