diff --git a/README.md b/README.md index 693b091..5350b5a 100644 --- a/README.md +++ b/README.md @@ -249,10 +249,11 @@ that case the input file name (or extension) is required, so the DeepL API can determine the file type: ```c# ... + using var outputFile = File.OpenWrite(outputDocumentPath); await client.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 });