mIRC Home    About    Download    Register    News    Help

Print Thread
$Read addition -r (reverse) #31118 20/06/03 06:53 AM
Joined: Apr 2003
Posts: 414
Adrenalin Offline OP
Fjord artisan
OP Offline
Fjord artisan
Joined: Apr 2003
Posts: 414
That mean it start search/read not from begin .. But from end smile
I think that will be very useful ..


mIRC Chm Help 6.16.0.3 Full Anchored!
Re: $Read addition -r (reverse) #31119 20/06/03 12:05 PM
Joined: Apr 2003
Posts: 26
P
Poltergeist Offline
Ameglian cow
Offline
Ameglian cow
P
Joined: Apr 2003
Posts: 26
Usefull for what? :tongue:

Re: $Read addition -r (reverse) #31120 20/06/03 12:18 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
reading files backwards?........


new username: tidy_trax
Re: $Read addition -r (reverse) #31121 20/06/03 12:19 PM
Joined: Apr 2003
Posts: 26
P
Poltergeist Offline
Ameglian cow
Offline
Ameglian cow
P
Joined: Apr 2003
Posts: 26
Why on earth would you want to do that?

Re: $Read addition -r (reverse) #31122 20/06/03 02:50 PM
Joined: Dec 2002
Posts: 2,809
C
codemastr Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Well if you want to read a file backwards, instead of reading from 1.. $lines(file), read from $lines(file) .. 1

Re: $Read addition -r (reverse) #31123 20/06/03 02:57 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
i didnt suggest this feature, i just said thats what it would do


new username: tidy_trax
Re: $Read addition -r (reverse) #31124 20/06/03 07:05 PM
Joined: Apr 2003
Posts: 414
Adrenalin Offline OP
Fjord artisan
OP Offline
Fjord artisan
Joined: Apr 2003
Posts: 414
Example you have a big file and whant to find some from the fresh part .. Not from the old .. example last nick join ..


mIRC Chm Help 6.16.0.3 Full Anchored!
Re: $Read addition -r (reverse) #31125 20/06/03 07:07 PM
Joined: Apr 2003
Posts: 414
Adrenalin Offline OP
Fjord artisan
OP Offline
Fjord artisan
Joined: Apr 2003
Posts: 414
Sometimes is very useful ! But its just my sugestion ..


mIRC Chm Help 6.16.0.3 Full Anchored!
Re: $Read addition -r (reverse) #31126 20/06/03 07:09 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
as codemastr said you could just use
$read(yourtext.txt,$lines(yourtext.txt)) smile


new username: tidy_trax
Re: $Read addition -r (reverse) #31127 20/06/03 07:11 PM
Joined: Apr 2003
Posts: 414
Adrenalin Offline OP
Fjord artisan
OP Offline
Fjord artisan
Joined: Apr 2003
Posts: 414
I know that can be do with a script .. The w,s($read) and other more switches can be imitated be a script .. And is still there


mIRC Chm Help 6.16.0.3 Full Anchored!
Re: $Read addition -r (reverse) #31128 20/06/03 07:25 PM
Joined: Jan 2003
Posts: 3,012
KingTomato Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Pheonix, why are you playing the parrot. Stop making redundant and useless posts pls. Every time you post, your IQ drops a level equal to your current post count.


-KingTomato
Re: $Read addition -r (reverse) #31129 20/06/03 07:57 PM
Joined: Jan 2003
Posts: 2,523
Q
qwerty Offline
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
I think something of that sort would be useful. You mentioned a valid example where this would be needed. Personally, I'd like to see it implemented in a slightly different way: the ability to use negative numbers, like we do in $*tok identifiers:

$read(file,-2)
Would read the 2nd line from the end

$read(file,w,*blah*,-3)
What would that do? Well, I'm not sure, but I guess it would be nice if it made $read() search backwards for lines matching *blah*, starting the search from the 3rd line from the end.

While we're at it, I'd like negative numbers support for other identifiers too, like $line().


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Re: $Read addition -r (reverse) #31130 20/06/03 08:39 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
ok, but im sure adrenaline doesnt appreciate being replied to when ya talkin to me=\


new username: tidy_trax
Re: $Read addition -r (reverse) #31131 20/06/03 08:45 PM
Joined: Jan 2003
Posts: 3,012
KingTomato Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
notice i addressed u at the beginning.. Like it matters at that point...


-KingTomato
Re: $Read addition -r (reverse) #31132 20/06/03 08:46 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
forget i said anything ok?
lets not let another threat get off topic thru our arguin smile
d00dman seemed to get mad last time


new username: tidy_trax
Re: $Read addition -r (reverse) #31133 21/06/03 06:42 AM
Joined: Dec 2002
Posts: 3,127
P
ParaBrat Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: Dec 2002
Posts: 3,127
Obviously you missed the point of d00d's post. No one is going to get mad at users disagreeing (civilly) with each other while they make valid points. What IS annoying is a ton of useless posts made for no reason other than perhaps to see yourself post or increase your count. To make a post to repeat what someone else just said, or to object to another user clicking the reply button on the wrong post, or to post irrelevant nonsense is a waste of everyone's time. We ask ppl to use the search feature and when they see a multitude of crud having nothing to do with the issue or helpful in any way, can we blame them for not wanting to wade thru that? Do you think it will encourage users to come here for help?

The OCCASIONAL offtopic post isnt going to make anyone mad. Sometimes threads take a sharp left turn as one thing leads to another, no big deal. The OCCASIONAL joking isnt a problem. However, wading thru dozens of useless posts that have to be deleted, and locking threads cause they have gone to hell in a handbasket so this forum doesnt look like an insane asylum, instead of using our time to answer questions is a fast way to make us seriously cranky. THINK before you hit enter.


ParaBrat @#mIRCAide DALnet
Re: $Read addition -r (reverse) #31134 21/06/03 11:43 PM
Joined: Feb 2003
Posts: 2,669
Raccoon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,669
Have you ever considered this MIGHT BE an insane asylum?

TOOT TOOT!

*thinking....*
*thinking....*
*click*


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
Re: $Read addition -r (reverse) #31135 22/06/03 07:48 AM
Joined: Dec 2002
Posts: 3,127
P
ParaBrat Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: Dec 2002
Posts: 3,127
some days, yes :tongue:


ParaBrat @#mIRCAide DALnet