Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java create file if not exists

File yourFile = new File("score.txt");
yourFile.createNewFile(); // if file already exists will do nothing 
FileOutputStream oFile = new FileOutputStream(yourFile, false); 
 
PREVIOUS NEXT
Tagged: #java #create #file #exists
ADD COMMENT
Topic
Name
7+9 =