Read X many bytes from File to address Y

Adam D. Ruppe destructionator at gmail.com
Wed Apr 7 12:50:01 UTC 2021


On Wednesday, 7 April 2021 at 11:42:56 UTC, tcak wrote:
> There is rawRead, but it takes an array as parameter, which 
> causes a dirty looking code with cast etc!

What did you wrote?


file.rawRead(address[0 .. desiredLength])


should do what you want.


More information about the Digitalmars-d-learn mailing list