[LCP]writing into a file

Madhav M. madhav3333 at lycos.com
Fri Nov 9 00:09:39 UTC 2001


hello,
 i didnt get file size more than number of bytes written to the file in my sample program. 
 if you can post your snippet of code, then may be it can be possible to trace out what is going wrong.

Madhav.
--

On Wed, 7 Nov 2001 12:42:39   
 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.
>After completion of this ,i am getting the files size as 1066 bytes instead
>of 1024.While debugging it is shown as no of bytes written is 1024 bytes.
>
>Can anyone explain me from where  these additional bytes are coming in?????
>
>


Make a difference, help support the relief efforts in the U.S.
http://clubs.lycos.com/live/events/september11.asp



More information about the linuxCprogramming mailing list