question: public static boolean stringToFile ( final String data , final File targetFile , final boolean doAppend ) { if ( targetFile == null || ! isWritable ( targetFile , true ) ) { Log . e ( FileUtils . class , "stringToFile(): File is null or cant make path dirs" ) ; return false ; } boolean isSucceed = true ; try { final FileWriter out = new FileWriter ( targetFile , doAppend ) ; out . write ( data ) ; out . flush ( ) ; out . close ( ) ; } catch ( IOException e ) { isSucceed = false ; } return isSucceed ; }
target:  Writes a String to a File.