Files and Buffers
Steven Schveighoffer
schveiguy at yahoo.com
Thu Feb 1 21:42:33 UTC 2018
On 2/1/18 4:36 PM, Jerry Ferris wrote:
> Hello,
>
> I'm developing a program that will either receive data from stdin or a
> file, and pass it along to a function for processing. I want to place
> this data into a buffer so there only has to be one version of the
> function. However, since I'm new to D, I'm unsure how to go about this
> in the most idiomatic way.
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
More information about the Digitalmars-d-learn
mailing list