reading from file comes out backwards - 11/06/05 06:46 PM
OK, so this script is reading from a text file like this:
---------txtfile-----
line1
line2
line3
line4
.....
---------------------
But the output shows up as: line4, line3, line2, line1
I want it to output like:line1, line2, line3, line4
Here is part of the code
thanks
---------txtfile-----
line1
line2
line3
line4
.....
---------------------
But the output shows up as: line4, line3, line2, line1
I want it to output like:line1, line2, line3, line4
Here is part of the code
Code:
... if ($read(list.txt,w,$+(*,$nick,*))) { var %x = $lines(list.txt), %target while (%x) { var %target = $addtok(%target, 7 $+ $chr(32) $gettok($read(list.txt,%x),1,32) $+ ,44) dec %x } msg $chan list is:7 %target ...
thanks