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.