mIRC Homepage

File handling improvement

Posted By: Wims

File handling improvement - 23/08/14 09:17 PM

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
Posted By: DooMaster

Re: File handling improvement - 07/12/19 11:40 PM

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
© 2020 mIRC Discussion Forums