You are asked to print the last line of the file.
The input of the program contains a single line - the name of the file.
The output of the program should contain a single line - the last line of the file. It’s guaranteed that the file contains at least a single line.
Input | input.txt | Output |
input.txt | hello this is
some file content | some file content |