mIRC Home    About    Download    Register    News    Help

Print Thread
File handling improvement #247722 23/08/14 09:17 PM
Joined: Jul 2006
Posts: 3,621
W
Wims Offline OP
Hoopy frood
OP Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,621
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


Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: File handling improvement [Re: Wims] #266434 07/12/19 11:40 PM
Joined: Oct 2017
Posts: 20
D
DooMaster Offline
Ameglian cow
Offline
Ameglian cow
D
Joined: Oct 2017
Posts: 20
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