I have used File.createTempFile() method to create temp file but as its output it appends the garbage value with the file name too. I used the method for uploading zipfile, but unable to delete those appended garbage value. For further functionality I need the exact name of file.
Kindly help...
Highly appreciate your response. My concern is, as code stated by niiraj874u, I am getting the the File name : tmp4501156806082176909.txt But I want only tmp.txt How can I remove appended numeric value?