Output range for file?

2016-01-24 Thread Tofu Ninja via Digitalmars-d-learn
I tried looking for this in phobos but cant seem to find it which is really annoying. For my uses this works: struct fileOutRange { File f; void put(ubyte[] a) { f.rawWrite(a); } } But was just wondering if there was a real output range for files

Re: Output range for file?

2016-01-24 Thread H. S. Teoh via Digitalmars-d-learn
On Sun, Jan 24, 2016 at 12:38:22PM +, Tofu Ninja via Digitalmars-d-learn wrote: > I tried looking for this in phobos but cant seem to find it which is > really annoying. For my uses this works: What kind of data do you need to write to file? If it's textual data, use File.lockingTextWriter,

Re: Output range for file?

2016-01-24 Thread Tofu Ninja via Digitalmars-d-learn
On Sunday, 24 January 2016 at 15:08:33 UTC, H. S. Teoh wrote: On Sun, Jan 24, 2016 at 12:38:22PM +, Tofu Ninja via Digitalmars-d-learn wrote: I tried looking for this in phobos but cant seem to find it which is really annoying. For my uses this works: What kind of data do you need to