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();
}

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 ( ) ; }
this function is used to saved contents of a string to a file
