I have made a c program that fetches mail from a pop3 server. It saves the messages in the users mailbox file /var/spool/mail/username and when i edit it i see this ^M on the end of every line. Does anybody have any ideas of why those strange chars appear in the file?... I tried to sed them oout with
sed 's/"^M"/" "/g' but without any success.