diff --git a/README.md b/README.md index 9a20a64..c4cee75 100644 --- a/README.md +++ b/README.md @@ -180,10 +180,11 @@ that case the input file name (or extension) is required, so the DeepL API can determine the file type: ```c# ... + using outputFile = File.OpenWrite(outputDocumentPath); await translator.TranslateDocumentAsync( new MemoryStream(buffer), "Input file.docx", // An extension like ".docx" is also sufficient - File.OpenWrite(outputDocumentPath), + outputFile, "EN", "DE", new DocumentTranslateOptions { Formality = Formality.More });