Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

File renameTo not working

 
jin sun
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is frustrating, I had it working a while ago but now it isn't working. The renameTo is returning false but I deleted the file with the same name that I'm trying to rename and closed the output and input streams. I also checked the permissions. Anyone have a clue what I'm doing wrong? Thanks in advance.


[ June 20, 2005: Message edited by: jin sun ]
 
Miguel Roque
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.

A couple of months ago a friend have asked for my help in a similar situation. The renameTo was not working and the problem was on the file path as he was trying to rename with only the file name. Try to include the complete path for the file, for example,



Miguel
 
jin sun
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ohhh ok, thanks a lot Miguel.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic