File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes I/O and Streams and the fly likes What s wrong in this file program to move a file to directory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "What s wrong in this file program to move a file to directory" Watch "What s wrong in this file program to move a file to directory" New topic
Author

What s wrong in this file program to move a file to directory

Vinney Shanmugam
Ranch Hand

Joined: Aug 27, 2008
Posts: 104


file is not getting moved...
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8968
    
    9

I don't see anything obviously wrong.
Does file.txt exist in the directory you are running the program from?
Is file.txt currently in use?
Does d:\myDirectory exist and do you have permission to write to it?

[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What s wrong in this file program to move a file to directory