• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Vinney Shanmugam
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


file is not getting moved...
 
Joe Ess
Bartender
Pie
Posts: 9266
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic