On 2013-12-11 08:21:35 +0000, luka8088 said:

Examples using such library:

void writeOutput () {
  writeln("example output");
}

void main () {

  writeOutput();

  standardOutputContext(file("example.txt"), {
    writeOutput();
  });

}


What does this method have over just using:

with(file("example.txt"))
{
        writeln("Foo");
}

Reply via email to