I have a script which will reverse the order of the content of a file by using two arrays. The first to store and reverse and the second to keep the reversed content. The problem with this approach is that it might break when the file size gets too big. It might be over 100-200MB in file size.
I've checked online and found a way to print it in reverse order. But i need to process the file line by line in reverse order. Any idea how i can get this done? thanks!!