posted 17 years ago
if(newFile.exists()) {
...................;//
}else{
newFile.createNewFile(){...[/code]
This oversimplified, and others will suggest not using file.exists() and .createNewFile() - that may not even be in the library implementation of File - but in one way or another there are numerous io tools already available, what does the data type to be saved?