Read X many bytes from File to address Y

tcak tcak at gmail.com
Wed Apr 7 11:42:56 UTC 2021


I am talking about std.file.File.

I have opened the file, and at a specific offset.

I want to read X many bytes from the file, and want it to be 
written to given address directly without any Magical D-stuff 
like ranges etc.

Is there a way to do this without getting into C or Posix header 
files?

There is rawRead, but it takes an array as parameter, which 
causes a dirty looking code with cast etc!


More information about the Digitalmars-d-learn mailing list