question: public void put ( String url , String response ) throws IOException { final File transcriptDir = getTranscriptDir ( ) ; if ( transcriptDir == null ) throw new IOException ( "Transcript directory not found" ) ; String hash = Sha1Util . SHA1 ( url ) ; File file = new File ( transcriptDir , hash ) ; FileOutputStream out = new FileOutputStream ( file ) ; out . write ( response . getBytes ( ) ) ; out . close ( ) ; }
target:  This function is used to saved contents of a String to a file