public static boolean copyFile ( File srcFile , File destFile ) { boolean result = false ; try { InputStream in = new FileInputStream ( srcFile ) ; try { result = copyToFile ( in , destFile ) ; } finally { in . close ( ) ; } } catch ( IOException e ) { result = false ; } return result ; }
false if fail