Nope..What I am doing is moving files from one directory to another. There is another program that at any point will be in the process of writing data to one of the files. With my current program I am able to move the file without generating an error, the other program simply creates a new file, and starts writing to it. I want to avoid moving the file, as now half the data resides in one file, and the other half resides in another(the file is a text file by the way)