If I would like to check whether file exists or not I will use:
File file = new File("name of File");
if(file.exists()) { //do something}
But what shall i do, If I would like to use it as check of installation: file can be created e.g. after 5 or 10 minutes : so how can file.exists()
controls whether file exists or not yet?
E.G.
- Installation started, file doesn't exist
- Installation continue 5 min file still doesnt exist
- After 10 min - file was created - e.g.
Installation.chk
(file exists already) my if statement is now true
Is it possible to create it in Java? If yes, how?