aspose 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


Win a copy of Java 8 in Action this week in the Java 8 forum!
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: 8715
    
    6

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?

"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[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
 
Similar Threads
Problem in moving file
renameTo()
How to copy PDF/Ms Word file to another directory
Need help with moving file from one directory to other
moving files to different folders