Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to handle filenotfoundexception in java

It will throw a FileNotFoundException if the file doesn't 
exist and cannot be created (doc), but it will create it if it can. 
To be sure you probably should first test that the file exists before 
you create the FileOutputStream (and create with createNewFile() if 
it doesn't)
 
PREVIOUS NEXT
Tagged: #handle #filenotfoundexception #java
ADD COMMENT
Topic
Name
4+6 =