Reading the part of the file

On sd the card the file is written down

11111
22222
33333

It is necessary to read part of the file, for example 22222

When using function seek() everything is read that after the index until the end of the file.
For example

myFile.seek(5);

reads

22222
33333

But it is necessary to receive only 22222

There is some opportunity to specify reading range?

When using function seek() everything is read that after the index until the end of the file.

No. The seek() method only changes where reading starts from. It has no impact on where you stop reading.

If you want to seek() to the start of the nth record, all records need to be the same length. If, after seeking, you only want to read one record, well, you know how long the records are, so you know when to stop reading.

Thanks.