Dear most advanced elite Pascal developers among us.
I would like to kindly ask you for new procedure.
The aim of this procedure would be to read line of text from text file by specifiing line number.
For example
Procedure Readlnr (linenumber: Real;, linecontent, String;
)
File would had to be opened before, sure.
And user could add line number which would be automatically read from text file.
The problem is, if this procedure could be constructed by calling some Android system calls.
Because procedure should not automatically read whole file and cutting specified line from The big long variable. Because theoretically, file could have many MB in syze.
Is it possible to construct such procedure, which would only really read The specified line number of text in to variable with no need to read whole file first to one big variable, and cutting specified line from this big variable.The Autohotkey C language interpreter for Windows contain this routine.
User can specify file name,line number, variable.
Sure, I did not analysed C source code of autohotkey how this feature work.
If C code read big file in to one variable and other its part cut for example line 20 or 100 of text from The previously readed variable.
Second problem is, if Microsoft di not release some specific Windows procedure for such task and if it can be simply made for Pascal and Android operating system.
Or if Assembly language would had to be used for such task?
But I AM hoping, that not.