Home
About
Download
Register
News
Help
Register
Log In
Forums
Scripts & Popups
Read lines from text file.
Forums
Active Threads
Search
Who's Online
Help
Print Thread
Read lines from text file.
#
209517
16/02/09
08:00 PM
Joined:
Feb 2009
Posts: 6
B
booth
OP
Nutrimatic drinks dispenser
OP
booth
Nutrimatic drinks dispenser
B
Joined:
Feb 2009
Posts: 6
How can I make this read more than one line?
Code:
on *:TEXT:!next:#: msg # $read(next.txt)
Copy Link to Clipboard
Re: Read lines from text file.
booth
#
209519
16/02/09
08:06 PM
Joined:
Oct 2005
Posts: 827
P
pouncer
Hoopy frood
pouncer
Hoopy frood
P
Joined:
Oct 2005
Posts: 827
$read only reads once. do you want it to read more than once and msg more than once? if so, why not have the msg twice?
Last edited by pouncer;
16/02/09
08:07 PM
.
Copy Link to Clipboard
Re: Read lines from text file.
pouncer
#
209521
16/02/09
08:33 PM
Joined:
Feb 2009
Posts: 6
B
booth
OP
Nutrimatic drinks dispenser
OP
booth
Nutrimatic drinks dispenser
B
Joined:
Feb 2009
Posts: 6
I have 2 lines, the first line is never overwritten only the second. I want to read and msg to # both lines in 1 message.
Copy Link to Clipboard
Re: Read lines from text file.
booth
#
209523
16/02/09
08:38 PM
Joined:
Jul 2006
Posts: 4,180
France
W
Wims
Hoopy frood
Wims
Hoopy frood
W
Joined:
Jul 2006
Posts: 4,180
France
$read(file,1) return the first line of your file, $read(file,2) return the second line...
#mircscripting @
irc.swiftirc.net
== the best mIRC help channel
Copy Link to Clipboard
Re: Read lines from text file.
booth
#
209525
16/02/09
08:54 PM
Joined:
Aug 2004
Posts: 7,252
Ontario, Canada
R
RusselB
Hoopy frood
RusselB
Hoopy frood
R
Joined:
Aug 2004
Posts: 7,252
Ontario, Canada
Instead of reading one line, then messaging it, then reading the other line, then messaging it, use the /play command
See /help /play
This will be especially helpful if, in the future, you decide to increase the number of lines in the text file.
Copy Link to Clipboard
Re: Read lines from text file.
RusselB
#
209542
17/02/09
01:36 AM
Joined:
Feb 2009
Posts: 6
B
booth
OP
Nutrimatic drinks dispenser
OP
booth
Nutrimatic drinks dispenser
B
Joined:
Feb 2009
Posts: 6
Thanks.
Copy Link to Clipboard
Re: Read lines from text file.
booth
#
209556
17/02/09
04:07 PM
Joined:
Jun 2008
Posts: 58
P
Pivo
Babel fish
Pivo
Babel fish
P
Joined:
Jun 2008
Posts: 58
I wonder why you actually want to read the first line if it doesn't ever change anyway...
You could simply /msg the text itself.
Copy Link to Clipboard
Hop To
News and Discussions ------
Latest News
General Discussion
Support ------
mIRC Help
Connection Issues
Scripts & Popups
Development ------
Feature Suggestions
Developers
Bug Reports
Print Thread
Switch to Threaded Mode
Show Likes
Link Copied to Clipboard
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
Forum Rules
·
Mark All Read
Contact Us
·
Help
·
mIRC Homepage