How do I read a file, wihout loading it into the memory, like the Delphi TFileStream class in D?
<p>I read somewhere that the std.stdio's File loads the file in the memory, then reads it. I come from Delphi, where there was a TFileStream class, which could be used to read/write files, without loading them in memory. And when writing/reading, I didn't have to worry about the line endings or any special characters, I could provide the number of bytes I want to read/write, plus it could even read/write to/from array of bytes, I'm not sure std.stdio.File has it or not.</p>

<p>Is it possible in D as well? I want to read only a number of bytes from a file, from a position I provide, without loading the whole file into the memory (the file is very big)? If yes, then how? And one more thing, I'll have to read files to array of ubytes(0-255)</p>

<p>P.S: the method should work on Linux, Windows is not my target;</p>