mIRC Home    About    Download    Register    News    Help

Print Thread
#39029 31/07/03 09:34 AM
Joined: Jan 2003
Posts: 109
S
Vogon poet
OP Offline
Vogon poet
S
Joined: Jan 2003
Posts: 109
Hi

I have 4 similar scripts in one file. On request in the channel, they pull data from web pages then send that data to the channel in 4 separate lines.
Currently the order the lines is displayed in is different each time, but I'm wondering if there's something I can add that will make the script read the lines in order that they are in the file. (ie first one first, second one second etc etc).

Thanks in advance!

Joined: Mar 2003
Posts: 272
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Mar 2003
Posts: 272
Code:
alias readfile {
  var %lines = $lines(Filename.txt), %i = 1
  while (%i <= %lines) {
   .echo -a $read(Filename.txt, %i)
   inc %i
  }
}


Link Copied to Clipboard