std.file.read

bearophile bearophileHUGS at lycos.com
Sun Aug 1 18:23:22 PDT 2010


Can you tell me why std.file.read() returns a void[] instead of something like a ubyte[]?

(Performing a cast(ubyte[]) in SafeD can be a problem. I presume in SafeD I have to use other safer functions to load binary data, like slurp() or something similar.)

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list