From b8e338594f152522faabe2650dfa5c2d0e6fe7db Mon Sep 17 00:00:00 2001 From: Benito Palacios Sanchez Date: Tue, 28 Nov 2023 06:38:23 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=96=20Update=20docs=20WriteTo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/articles/core/binary/datastream.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/articles/core/binary/datastream.md b/docs/articles/core/binary/datastream.md index 55525a66..a55ac1db 100644 --- a/docs/articles/core/binary/datastream.md +++ b/docs/articles/core/binary/datastream.md @@ -94,6 +94,8 @@ internally maps to the .NET enumerations `FileMode` and `FileAccess` as follow: > hundreds of `DataStream` on different files ready without running out of > resources in the operative system. + + > [!TIP] > `FileOpenMode` is handy enumeration that covers most use cases. If you require > any other combination of `FileMode` and `FileAccess` you can create the @@ -119,7 +121,9 @@ applies to the content that targets this `DataStream`, not the entire parent > [!NOTE] > The method ignores the current position, it will always start writing from the -> start to the end. It will **restore** the current position after comparing. +> start to the end. It will **restore** the current position after writing. It +> will also start **truncate** the output file. It will not append or preserve +> any existing content. The path should point to the output file. If there is any directory that doesn't exist, it will create them first.