renameTo - must be attribues problem
as i mentioned before, the renameTo won't move files.
I tried to do it manually with a command like this:
System.out.println(new File("c:\\test\\high.mp3").renameTo(new File("c:\\test\\high1.mp3")));
and sometimes it works, and sometimes after it moves or manually renamed by me, it wont renameTo it!!!!! it drives me crazy! must be something with attributes or something!
you must help me how to fix this
[553 byte] By [
renameToa] at [2007-11-26 18:39:38]

Did you read the API docs?
Many aspects of the behavior of this method are inherently platform-dependent: The rename operation might not be able to move a file from one filesystem to another, it might not be atomic, and it might not succeed if a file with the destination abstract pathname already exists. The return value should always be checked to make sure that the rename operation was successful.
Or maybe someone's still got a hold on that file.
> Im a little newbie... can you tell me how?> > isnt enough to do file1 = null;?> > thanksThat isn't a stream. You should call close on all readers, writers, inputstreams and outputstreamsKaj