Guys, I am trying to write to different pieces of a large file using multiple threads, just like a segmented file downloaded would do.
My question is, what is the safe way to do this? Do I open the file for writing, create my threads, passing the Stream object to each thread? I don't want an error to occur because multiple threads are accessing the same object at potentially the same time.
This is C# by the way.