Thomas Michael Engelke wrote:
Assuming that fileformat "unix" means 0x10 means "open a new
line" which seems to be the case (0x13 stays as ^M, 0x10 is
interpreted as a new line), shouldn't this mean that in the
last line there is a line break missing?

It's not important here, but for the record, 0x10 means hex 10,
which is decimal 16. That's not what you have.

The correct story is:
 ^M = Ctrl-M = 13 = 0x0d = CR = carriage return
 ^J = Ctrl-J = 10 = 0x0a = LF = line feed

A "Unix format" file has LF at the end of each line.
A "DOS format" file has CR LF at the end of each line.

Some stupid systems put nothing at the end of the last line.
That is what we see in your sample file (your last line has
no terminator).

John

Reply via email to