|
From: Koval V. <vk...@in...> - 2004-06-30 11:22:46
|
On 30 Jun 2004 14:19:59 +0530 "A.Bhuvaneswaran" <bh...@sy...> wrote: > I am new to windows. I am trying to read data from a binary file using > open, lseek & read system calls. But, read returns 0 bytes at certain > point, even though it has not reached the eof. > > For example, if the file size is 400k and if i try to read from 2k to > 300k, 1k at a time, read returns 0 (indicating eof, right ?) after > reading 51k. Past week I see this problem. Set option for open file O_BINARY. |