Binary file write has CRLF inserted

DSP Tech dsptech@hotmail.com
Fri Nov 11 17:54:00 GMT 2005


Hi,

I have used cygwin to build the GCC ARM tools and libraries.  I am using the 
cygwin1.dll for running my application on windows.

But file write in my application program has problem. The code is

{
		FILE *fp;
		fp = fopen("c:\\hi.yuv", "wb");
		fwrite(OutputArray, 0x14E200, 1, fp);
		fclose(fp);
}

All Line Feeds(0x0A) are replaced by CRLF( 0x0D 0x0A) when written to a file 
though I am opening the file in binary mode. Is there a method to write the 
data in the buffer "Outputarray" as it is. Kindly help

Regards
Ralf

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list