jschell wrote:Yes, do that. The snippets provided are pretty useless.java codeIf you think code is going to help then you need to post the actual code.
Bingo.Could somebody tell me the reason for this?You are allocating something and then not freeing it. In your C code.
You don't want nor need the buffering that comes with fopen() et al when that's all you're doing.
int fd = open( filename, O_WRONLY ); lseek( fd, 0, SEEK_END ); write( fd, buffer, bytes ); close( fd );