Create a console program to display each byte of a file.
Since this is code-golf, fewest bytes wins.
- Program must be a console application, meaning that it will be ran from a command-line interpreter;
- Every byte must be uppercase hexadecimal, separated by a space, and it must be 2 digits; (put number 0 before it if it's 1 digit)
- File must be read, and not hard-coded;
- File path must be specified as a command-line argument or a user prompt (like STDIN);
- No loopholes please;
test.txt (ends with LF)
$ ./hexdump.exe test.txt 48 65 6C 6C 6F 20 57 6F 72 6C 64 21 0A