How to print last character of a file

In Unix, using a simple command like sed, is there a way to print the last character of a file?


tail is the right tool, not sed.

tail -c 1 filename

tail -c 2 file should do it. Should be -c 1 in theory but practice proved me wrong.

Edit: If your file has a an end of line character that you want to ignore, it's 2. 1 otherwise.