Re: Files and Buffers

2018-02-02 Thread Jerry Ferris via Digitalmars-d-learn
Good day, I reexamined my objective and needs, and I've determined that the entirety of the input does not need to be read in all cases. Thus I've returned to using File instead std.file.read. I should've put forth more thought; because I did not, I created a fairly useless OP. I do apologize,

Re: Files and Buffers

2018-02-01 Thread Jerry Ferris via Digitalmars-d-learn
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

Files and Buffers

2018-02-01 Thread Jerry Ferris via Digitalmars-d-learn
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