Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: X-Sender: dsptech AT hotmail DOT com From: "DSP Tech" To: cygwin AT cygwin DOT com Subject: Binary file write has CRLF inserted Date: Fri, 11 Nov 2005 14:37:24 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-IsSubscribed: yes 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/