SyntaxFix
Write A Post
Hire A Developer
Questions
You can get the current timestamp appended with a file extension in the following way:
String fileName = new Date().getTime() + ".txt";