Как я могу прочитать произвольный файл и обработать его "по частям" (означая байты побайт или некоторые другие размеры блоков, которые обеспечили бы лучшую производительность чтения), не загружая весь файл в память? Примером обработки будет создание хэша MD5 файла, хотя ответ может применяться к любой операции.
Я хотел бы написать или написать это, но если я смогу получить существующий код, это тоже будет здорово.
(С#)