Files and Buffers
Jerry Ferris
biomechanical at iomailu.io
Thu Feb 1 22:00:38 UTC 2018
On Thursday, 1 February 2018 at 21:42:33 UTC, Steven
Schveighoffer wrote:
> On 2/1/18 4:36 PM, Jerry Ferris wrote:
> https://dlang.org/phobos/std_file.html#read
>
> Then cast to ubyte[].
>
>> Thank you in advance, and I apologize if this is a very stupid
>> question.
>
> Not a stupid question!
>
> -Steve
On Thursday, February 01, 2018 21:36:52 Jerry Ferris via
Digitalmars-d-learn wrote:
>If you want to copy an entire file into an array, then use
>std.file.read or std.file.readText. std.stdio.File only really
>makes sense if you're trying not to read the entire file into
>memory.
>
>- Jonathan M Davis
In retrospect, I should've looked more closely to that module.
Regardless, thank you very much for your (prompt!) answers.
Regards,
Jerry Ferris
More information about the Digitalmars-d-learn
mailing list