mIRC Home    About    Download    Register    News    Help

Print Thread
#247722 23/08/14 09:17 PM
Joined: Jul 2006
Posts: 4,144
W
Wims Offline OP
Hoopy frood
OP Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,144
There is currently no way to do anything backward except than setting the position of the pointer to a known position (that is, before the current pointer position).
I'd like to see this added:


1) /fseek -p, similar to -n, would set the pointer to the beginning of the previous line (-n is probably just a loop on $fgetc until $lf is seen forward, which is what I currently do, but backward which is not efficient in msl).

2) $fopen().line, which would return the line number the pointer is on

3) $fread().back, read the next line or N bytes from the pointer, but backward


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Oct 2017
Posts: 47
D
Ameglian cow
Offline
Ameglian cow
D
Joined: Oct 2017
Posts: 47
I was looking in search before opening a new feature suggestion and I saw this.

It would be nice to see (especially -p and .line) to be added in next release smile


Link Copied to Clipboard