@safe std.file.read

WebFreak001 d.forum at webfreak.org
Mon Jan 6 10:07:37 UTC 2020


I was wondering, how are you supposed to use std.file : read in 
@safe code when it returns a void[] but you want to get all bytes 
in the file?

Is void[] really the correct type it should be returning instead 
of ubyte[] when it just reads a (binary) file to memory? Or 
should void[] actually be castable to ubyte[] in @safe code?


More information about the Digitalmars-d-learn mailing list