File IO Monitoring

HI Friends,
I want to read from specified directory. But I dont know tat file status. Some other process might be accessing it. If so I have to wait until that file is avalible.So what will be the soln?
[208 byte] By [VikramX] at [2007-11-18 19:22:04]