I have a need to read a large ascii file in reverse order, that is to find EOF then read the last line, then the penultimate line and so on. Under normal circumstances, I would use a 'PREVIOUS' command, but of course this is not available for ASCII files.
A brute force approach is to find the file pointer for the last record, then sequentially GET(ascii,fielponter). It works, but is slow when having to find EOF each time.
Any ideas anybody?
A brute force approach is to find the file pointer for the last record, then sequentially GET(ascii,fielponter). It works, but is slow when having to find EOF each time.
Any ideas anybody?