I have a large (>50,000 lines) text log file that I would like to "copy" the last n lines from, into another, new text file.
I would rather not read the whole log file into an array simply to save the last n lines out to a new file, it seems very processor intensive for that result.
Can anyone think of a way I can get the last n lines from a text file this large?
Many thanks
