public static void writeDictionary ( NaaccrDictionary dictionary , File file ) throws IOException { try ( Writer writer = new OutputStreamWriter ( new FileOutputStream ( file ) , StandardCharsets . UTF_8 ) ) { writeDictionary ( dictionary , writer ) ; } }
Writes the given dictionary to the provided file .