Use $read with the s switch, it will scan the file for you and try to match the first word and will return the rest of the line.

if you have a file like :

Wims 2
kkoser 1
test

$read(file,s,Wims) return 2
$read(file,s,kkoser) return 1
$read(file,s,test) return $null even if he found something, because he return the rest of the line, but $readn will have a value.


#mircscripting @ irc.swiftirc.net == the best mIRC help channel