Change your filename extension when editing with emacs. emacs seems to add a new line to file having a name with extension ".txt".
I created a filre named "file0" and another named "file0.txt" containing the same simple string. A newline is added to "file0.txt", but not to "file0" after CTRL XS.