Always put a newline at the end of each file.  There are still some editors that can't handle this...vim/vi and I think a version of emacs or something.  Anyway, just get in the habit of putting the newline and there shouldn't be any issues.