KYorke :
I have created a blockchain solution and that works fine in principle but I need it so that every time the code gets executed, a new file is created in the folder. Currently it just keeps overwriting the file.
Can anyone help me out on this?
VioletTec :
Maybe you can get the current timestamp when creating the file. The timestamp is unique, so it will not have the problem of overwriting.
File f = new File("yourFileName"+System.currentTimeMillis());
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=292180&siteId=1