Awk not working due to missing new line character at last line of file

Hi,

My awk program is failing. I figured out using command

od -c filename

that the last line of the file doesnt end with a new line character.

Mine is an automated process because of this data is missing.
How do i handle this?

I want to append new line character at the end of last line in file if it is missing.
i tried doing this.

echo ,,,, >> file

thinking this will add a line the file.

Instead this is appending to the last field of the last line.

I want

where \n is new line character

Help is appreciated

echo "" >> filename

Will add a new line character to the end of the file.

$ echo fred > fred
$ od -bc fred
0000000 146 162 145 144 012
          f   r   e   d  \n
0000005
$ echo "" >> fred
$ od -bc fred
0000000 146 162 145 144 012 012
          f   r   e   d  \n  \n
0000006
$ 

Thankyou TonyFullerMalv