I need to write a routine, which will check whether a given file is already in use. If the file is already opened for writing, I need to get that status.
I need to do this in windows environment, I think this doesnt matter much
I tried doing this using,
fopen, OpenFile.. but in all these functions, there is an extra operation of getting a file handle and then closing it. Can we determine this without actually getting a file handle and then closing it? I want to remove this overhead.