mIRC Home    About    Download    Register    News    Help

Print Thread
#255170 28/09/15 06:19 AM
Joined: Dec 2008
Posts: 1,515
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
Hello,

I wanna suggest an flag option into the $read identifier that will start reading an file from bottom to up (the opposite of now).

e.g:

$read($mircini,bw,*n0=*)

$read($mircini,b,n1=mirc)

- Thanks!


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Apr 2004
Posts: 871
Sat Offline
Hoopy frood
Offline
Hoopy frood
Joined: Apr 2004
Posts: 871
For large files, this will be slow - likely much slower than a forward search. Operating systems and storage devices are generally good at forward sequential (file/disk) access, and not so much at the reverse. In many scenarios it would probably be faster to use /filter to get all matches and then let your script take the last one. With that said, sure, why not.


Saturn, QuakeNet staff
Joined: Dec 2008
Posts: 1,515
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
$read is slow for large files already :P , i thought about /filter but in some situations it cant be useful.


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Jul 2006
Posts: 4,150
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,150
https://forums.mirc.com/ubbthreads.php/topics/241252/$read_and_$reade_suggestion#Post241252
Already suggested by you smile


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Dec 2008
Posts: 1,515
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
Originally Posted By: Wims
https://forums.mirc.com/ubbthreads.php/topics/241252/$read_and_$reade_suggestion#Post241252
Already suggested by you smile


LOOOOOOOOOOOOOOOOL ahahhahha i really forget that damn your memory Wims... <3


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-

Link Copied to Clipboard