I'm working on C# project and I want to read a single file from multiple threads using streams in the following manner:
- A file is logically divided into "chunks" of fixed size.
- Each thread gets it's own stream representing a "chunk".
The problem that I want use a Stream interface and I want to limit the size of each chunk so that the corresponding stream "ends" when it reaches the chunk size.
Is there something available in standard library or my only option is to write my own implementation of Stream?