wildzero
asked on
Append content of TMemoryStream to TFileStream
Hi there.
I have a TFileStream and TMemoryStream.
What I want to do is
Open TMemoryStream - fill with something
Open TFileStream - write TMemoryStream to the end of TFileSream
Close TFileStream
Clear TMemoryStream
Someone got some pointers?
Thanks
I have a TFileStream and TMemoryStream.
What I want to do is
Open TMemoryStream - fill with something
Open TFileStream - write TMemoryStream to the end of TFileSream
Close TFileStream
Clear TMemoryStream
Someone got some pointers?
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
excellent - thank you :)
ASKER
Because I am downloading a file from the internet
need to put the memory buffer into a local file on each cycle
so
downlading file
when each memory buffer is full append to file
that way if the program/computer crashed then it should still resume later without a corrupt file because if I download 1 mb file but kill the prorgram before it's complete the local file still says 1mb when only really say 200k is downloaded...
let me try ur examples
:D