Implement "tac": Print lines from a file in reverse Between the kitten question and seeing this question at U&amp;L about some sed magic, how about implementing tac?



Objective

Implement a program that will reverse and print the lines in a file.



Input

A file, provided as a name or via standard input



Output

The lines, reversed, to standard out.



Scoring

Bytes of source code.
GS2, 3 bytes

* +


The three bytes are, in order, split lines, reverse, and join lines.