|
Re: replace a sustring
|
Posted: Jun 26, 2009 12:07 AM
|
|
> Hey... > > i am facing a pblm with the same code.. > not able to delete the existing file and rename the temp > file name. > can please suggest me the reason behind this as already > checked alot many things like--is file currently open, > is file is being accessed by any other function....
This is almost impossible to answer without access to your system. All I can do is guess.
If you know that the file is closed and is not being used by another application, check that the file is not read only and that you (or, more accurately, your application) has authority to delete the file.
I assume, from what you said above, that the application can create and write to the temporary file but cannot rename it. This suggests that the problem is access rights on the system, and not a code problem.
|
|