Read file
-
Can I read a file which is already opened for writing????:doh: Dream bigger... Do bigger...Expect smaller aji
If I am not wrong, Unless u close the handle ,u cannot open the same file again. If u want to read and write at the same time use flags like
CFile::modeReadWrite
Appu.. "If you judge people, you have no time to love them." -
If I am not wrong, Unless u close the handle ,u cannot open the same file again. If u want to read and write at the same time use flags like
CFile::modeReadWrite
Appu.. "If you judge people, you have no time to love them." -
Thats i know. My problem is that this file is opened for write by another application. I have no information about this application. I want to read it from my application. Dream bigger... Do bigger...Expect smaller aji
Then to my knowledge,it is not possible to read . Appu.. "If you judge people, you have no time to love them."
-
Can I read a file which is already opened for writing????:doh: Dream bigger... Do bigger...Expect smaller aji
It all depends on the share mode used to open the file. If the other application opened the file with READ access and using FILE_SHARE_READ, then you can read the file. Try opening the file with the same and see what happens. Anyone who thinks he has a better idea of what's good for people than people do is a swine. - P.J. O'Rourke