importstd.stdio;importdyaml;voidmain(){//Read the input.Noderoot=Loader.fromFile("input.yaml").load();//Display the data read.foreach(stringword;root["Hello World"]){writeln(word);}writeln("The answer is ",root["Answer"].as!int);//Dump the loaded document to output.yaml.dumper().dump(File("output.yaml","w").lockingTextWriter,root);}