I have a text file and i need to print the lines in the reverse order
THE QUESTION: If the file has more than five lines, it will print ONLY the first five lines in the reverse order. If the file has less than five lines then these should be displayed as it appears in the file (NOT reversed).
This is the text File
THE QUESTION: If the file has more than five lines, it will print ONLY the first five lines in the reverse order. If the file has less than five lines then these should be displayed as it appears in the file (NOT reversed).
This is the text File
Line #one Line #two Line #three Line #four Line #five