Files as buffered InputRange

Les De Ridder les at lesderid.net
Fri Jul 5 17:57:39 UTC 2019


On Friday, 5 July 2019 at 17:29:26 UTC, berni wrote:
> I'd like to process a (binary) file as a buffered InputRange 
> but I havn't found anything yet.  Is there anything or do I 
> have to write it on my own?

File.byChunk[1] should do the trick.

[1] https://dlang.org/library/std/stdio/file.by_chunk.html


More information about the Digitalmars-d-learn mailing list