You read in a forward direction, but you use FileSeek() to set the read pointer to the record you wish to read.
Open the file.
Use FileSeek() and go to the end of the file.
Use FileSeek() to reposition the file pointer to the beginning of the last record.
Read the last record.
Reposition the pointer to the beginning of the second to last record
Read the record.
and so on.
--
Another way, read some or all of the data records into an array and read from the array in the direction you like.
Open the file.
Use FileSeek() and go to the end of the file.
Use FileSeek() to reposition the file pointer to the beginning of the last record.
Read the last record.
Reposition the pointer to the beginning of the second to last record
Read the record.
and so on.
--
Another way, read some or all of the data records into an array and read from the array in the direction you like.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I just can read from top to bottom because on the bottom the file pointe is end and I dont knwo how to read it in other order, bottom to top, because at the bottom from the file there are the aktuallest informations.