From: A.Bhuvaneswaran <bh...@sy...> - 2004-06-30 08:50:06
|
Hi, I am using win xp home edition. 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. I have tried the same code on gnu linux and it works perfect. Could you please let me know what am i doing wrong over here ? Googling and search in the archive does not help. TIA. I will be glad to submit repeatable tiny sample code, if required. --=20 Regards, A.Bhuvaneswaran |