I need to clarify in my mind saving data to TFileStream correctly

Lets say I make a file in TFileStream 1 gig in size!!!
I set the position 100 k into the TFileStream and I write 200k of data from a TMemoryStream

1/ is it over writing from 100 k to 300 k new data into TFileStream and leaving everything else alone?
Is it doing some thing else
…
If I save a string to TFileStream
2/ it saves the string size info as well as the character data

Writing into the middle of a stream will definitely overwrite I believe.

As for writing a string :
delphi - Writing strings to TMemoryStream - Stack Overflow https://stackoverflow.com/questions/14815146/writing-strings-to-tmemorystream

(and) https://stackoverflow.com/questions/732666/converting-tmemorystream-to-string-in-delphi-2009

I just need to be sure of that thanks

1 Like