Quantcast
Channel: How to rename file in Java [ Ubuntu platform ]? - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by Peter Lawrey for How to rename file in Java [ Ubuntu platform ]?

You can use File.renameTo(newFileName)If this doesn't work, you need to work out why as this method isn't very helpful. e.g. you can't rename a files which isn't there or you don't have permissions to...

View Article



How to rename file in Java [ Ubuntu platform ]?

I want to rename a file in Java. My working platform is Ubuntu. The renameFile() didn't work for me. Is there any other ways to rename a file ?ADDED : File file = new File( "/home/test/filename.txt"...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images