protected static FileWriter createFileWriter ( String scenarioName , String aux_package_path , String dest_dir ) throws BeastException { try { return new FileWriter ( new File ( createFolder ( aux_package_path , dest_dir ) , scenarioName + ".story" ) ) ; } catch ( IOException e ) { String message = "ERROR writing the " + scenarioName + ".story file: " + e . toString ( ) ; logger . severe ( message ) ; throw new BeastException ( message , e ) ; } }
Method to get the file writer required for the . story files