[LCP]writing into a file

Bill Rausch William.Rausch at numerical.com
Fri Nov 16 01:11:09 UTC 2001


On Windows, you might be getting CR/LFs inserted into the output file 
instead of just one or the other?  This can happen even when you 
think you are working with a binary file. There is an option to 
specify on the open (I forget just now what it is).

Bill

At 4:35 PM +0530 11/7/01, Sateesh Kumar Narayana wrote:
>Actually i am trying to write it for windows where such utility is not
>available.
>
>----- Original Message -----
>From: "Erik Mouw" <J.A.K.Mouw at its.tudelft.nl>
>To: "Sateesh Kumar Narayana" <sateesh.narayana at wipro.com>
>Cc: <linuxcprogramming at lists.linux.org.au>
>Sent: Wednesday, November 07, 2001 4:29 PM
>Subject: Re: [LCP]writing into a file
>
>
>On Wed, Nov 07, 2001 at 12:42:39PM +0530, Sateesh Kumar Narayana wrote:
>>  I am trying to write a file splitter (splitting files into 1KB
>>  each).First i am opening the file in binary mode and reading some 1KB
>>  and writing the same into a new file.
>
>What exactly was wrong with the "split" utility (from the GNU
>textutils) that you want to rewrite it?
>
>
>Erik
>
>--
>J.A.K. (Erik) Mouw, Information and Communication Theory Group, Faculty
>of Information Technology and Systems, Delft University of Technology,
>PO BOX 5031, 2600 GA Delft, The Netherlands  Phone: +31-15-2783635
>Fax: +31-15-2781843  Email: J.A.K.Mouw at its.tudelft.nl
>WWW: http://www-ict.its.tudelft.nl/~erik/
>_______________________________________________
>This is the Linux C Programming List
>:  http://lists.linux.org.au/listinfo/linuxcprogramming List
>
>
>Attachment converted: Biggie:Wipro_Disclaimer.txt 1 (TEXT/R*ch) (00006209)


-- 
  Bill Rausch, Software Development, Unix, Mac, Windows
  Numerical Applications, Inc.  509-943-0861   bill at numerical.com



More information about the linuxCprogramming mailing list