in reply to string gets front truncated
I think that the answer is that you have a (one or more) "\r"s (0x13) in your file. So, it prints part of the file, return the (ancient term warning)carriage control cursor to the left, and then prints over what it has already printed.
Try running tr[\r][]d; on it before you print it out.
|
|---|