my favourite for streaming a file: enum chunkSize = 4096; File(fileName).byChunk(chunkSize).map!"cast(char[])a".joiner()Is this an efficient way of reading this type of file? What should one keep in mind when choosing chunkSize?
It provides you only one char at a time instead of a whole line. It will be quite constraining for your code if not mind-bending.