aspose file tools*
The moose likes Beginning Java and the fly likes Rename The File Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Rename The File" Watch "Rename The File" New topic
Author

Rename The File

naval kumar
Ranch Hand

Joined: Jul 08, 2012
Posts: 37
Dear Sir,
I have To rename the File 123.pdf with The 123_userId.pdf.

I have seen the code



But I want To Rename the File With the Existing Name+"-"+DynamicUserID.pdf ( Example 123.pdf with 123_5122.pdf)
Stuart A. Burkett
Ranch Hand

Joined: May 30, 2012
Posts: 679
naval kumar wrote:But I want To Rename the File With the Existing Name+"-"+DynamicUserID.pdf ( Example 123.pdf with 123_5122.pdf)

So what problems are you having ? You will find suitable methods for doing what you want in the File and String classes.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Rename The File