The problem seems to consist in the newline character. Your hex output corresponds to certain Macs versions or to some old systems like ZX Spectrum. In windows, the newline is 0x0D 0x0A (2 characters). Therefore, your file needs to contain:
555345526e6f2020202020202020203a300d0a
46616d696c792020202020202020203a300d0a
4d6f64656c202020202020202020203a340d0a
5375624d6f64656c202020202020203a310d0a
555345526e6f2020202020202020203a300d0a
46616d696c792020202020202020203a300d0a
4d6f64656c202020202020202020203a340d0a
5375624d6f64656c202020202020203a310d0a
To copy to clipboard, switch view to plain text mode
in windows, if you want 4 lines. Note that the newline is different in Linux. Even then, it is not clear, which evil has taken all the blanks in the file.
If you want to process text files produced by any (most of) systems, you need to read in binary mode and parse the lines yourself. You must be prepared to
(a) newlines:
- 0x0D - Mac and some others
- 0x0A - Linux
- 0x0D 0x0A - windows, DOS
(b) code pages
Bookmarks