RosettaCodeData/Task/File-input-output/D/file-input-output-4.d

10 lines
182 B
D
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
import tango.io.device.File;
void main()
{
2015-11-18 06:14:39 +00:00
auto from = new File("input.txt");
2013-04-10 21:29:02 -07:00
auto to = new File("output.txt", File.WriteCreate);
2015-11-18 06:14:39 +00:00
to.copy(from).close;
from.close;
2013-04-10 21:29:02 -07:00
}