Re: <tt>renameTo()</tt> method in <tt>File</tt> class
Posted By:
Tim_Rohaly
Posted On:
Friday, April 20, 2001 08:22 PM
Probably because some other process has the
file open at that time. It is OS-dependent
behavior what happens when you try to rename
or delete a file that is open. It is giving
you the correct return value of false when
the operation fails - this gives you a programmatic
way to deal with this condition.