Write entire file: Difference between revisions

Added solution for D
(Added solution for D)
Line 284:
:if-does-not-exist :create)
(format str "File content...~%"))</lang>
 
=={{header|D}}==
<lang D>import std.stdio;
 
void main() {
auto file = File("new.txt", "wb");
file.writeln("Hello World!");
}</lang>
 
=={{header|Elena}}==
1,452

edits