On 21/05/2018 11:50 PM, 0xEAB wrote:
What's the correct way to copy a `File` into another one in D?
If `LockingTextReader` wasn't undocumented, I'd have gone for that
approach:
import std.algorithm.mutation : copy;
import std.stdio : File, LockingTextReader;
void main()
{
auto a =
What's the correct way to copy a `File` into another one in D?
If `LockingTextReader` wasn't undocumented, I'd have gone for
that approach:
import std.algorithm.mutation : copy;
import std.stdio : File, LockingTextReader;
void main()
{
auto a = File("a.txt", "r");
auto b =