mIRC Home    About    Download    Register    News    Help

Print Thread
#43839 24/08/03 05:05 AM
Joined: Aug 2003
Posts: 136
Vogon poet
OP Offline
Vogon poet
Joined: Aug 2003
Posts: 136
Is there a way to have a script that reads the number of lines in a .txt? Ive looked and couldnt find anything. I have a script that has facts and Id like a way to list the number of facts aka the number of lines.


In Virginia, chickens cannot lay eggs before 8:00 a.m., and must be done before 4:00 p.m.
Joined: Dec 2002
Posts: 1,527
_
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,527
type /help $lines

from the help file :

$lines(filename)
Returns the total number of lines in the specified text file.

$lines(c:\irc\kicks.txt) returns the total number of lines in c:\irc\kicks.txt



D3m0nnet.com
Joined: Aug 2003
Posts: 136
Vogon poet
OP Offline
Vogon poet
Joined: Aug 2003
Posts: 136
My god i missed it thank you


In Virginia, chickens cannot lay eggs before 8:00 a.m., and must be done before 4:00 p.m.
Joined: Dec 2002
Posts: 1,527
_
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,527
your welcome


D3m0nnet.com

Link Copied to Clipboard