brivers
December 21st, 2004, 12:38 PM
Does anyone know if there is a way to tell whether or not a file has any pending writes? In my app there is an external program that creates a file which I need to read in my app. However, I seem to be trying to read the file before it's been completely written (due to Windows write-back disk caching). How can I synchronize my reads? In Linux/Unix I would use select() or poll(). Does Windows have anything similar?
Thanks!
Thanks!