tags:

views:

45

answers:

1

The second parameter of the FileStream.Read method is called offset but is it zero-based like an index or does it start from one?

+3  A: 

It starts from zero indicating the beginning of the stream. Quote from the documentation:

offset

The zero-based byte offset in buffer at which to begin storing the data read from the current stream.from the current stream.

Darin Dimitrov