Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void makeNewFiles {
- Date d = new Date();
- SimpleDateFormat sdf = new SimpleDateFormat("hh:mm:ss dd-MM-yyyy");
- String ns = sdf.format(d);
- File ntf = File.createTempFile(ns, ".png", directory);
- }
- public void makeNewFiles {
- Date d = new Date();
- SimpleDateFormat sdf = new SimpleDateFormat("hh:mm:ss dd-MM-yyyy");
- String ns = sdf.format(d);
- File n1 = new File(directory, pathToActualFile);
- File n2;
- if(n1.exists()) {
- n2 = new File(directory, ns + ".png");
- n2.createNewFile();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement