reading a file in reverse

BlitzMax Forums/BlitzMax Beginners Area/reading a file in reverse

sandav(Posted 2007) [#1]
Is there any way to read a stream starting with the last line, and moving towards the first?


Perturbatio(Posted 2007) [#2]
seek to the end minus the size of the value you want to read (byte=1, int=4, etc).
then just work backwards?


grable(Posted 2007) [#3]
Or put each line in a TList and reverse it.