DataStream.WriteTo now truncates the output file. Before if the file existed, it was opening and overwriting data. This could have caused unexpected results as the output file may have not contained exactly the same content as the source stream.
Quality check list
[x] Related code has been tested automatically or manually
DataStream.WriteTo
now truncates the output file. Before if the file existed, it was opening and overwriting data. This could have caused unexpected results as the output file may have not contained exactly the same content as the source stream.Quality check list
Acceptance criteria
WriteTo
truncates the file if existsFollow-up work
none
Example
API doesn't change.