Need some help with Streams

BlitzMax Forums/BlitzMax Programming/Need some help with Streams

I need to create a stream that is able to read from an 'area' of an existing stream, a sort of sub stream that can be used as a regular stream (so extended from it).

That is, for example, If I'm reading from a file using a stream, I should be able to define another stream that gets de data from the byte number X of the existing stream, and has a lenth Y.

Something like:


Any help or solution in this direction would be very apreciated.