Reading a binary file and printing it's contents as hex values

Seems like a trivial task - and it is.
But to get to the point on how to actually achive this with not that much code took myself around two hours.