>I ended up doing is using the same hex editor and looking at the file in that
>seems these 2 editors are producing different results same file. What I am wondering is if fwrite sends more then what I am telling it to. I am using Fwrite with what i want to write then + chr(10) as a line feed to delimit the data.
FWRITE writes exactly what you tell it to; many things will try to be 'helpful' and change linefeeds alone into carriage return/line feed pairs. This may well be what's happening here
No, but there's every danger that an email package or is changing the file on extraction, too - many email pacakages, when they see a file as ASCII, interpret the file and convert it for use in DOS, which means tranlating LF into CR/LF pairs. try sending the file as a binary file attachment rather than as text, and see if that helps.