11
3
Challenge
Create a new file and write the string Hello World
to it.
Restrictions
Your challenge must write to a file on disk, in the file system.
The file may not be a log file generated during normal operation of the interpreter.
The file must contain only the string
Hello World
. It is allowed to contain a trailing newline or minimal whitespace. No other content.No command-line flags/pipes (etc) allowed, except when necessary to run the program. (e.g.
perl -p
)
Notes
This is code-golf, so shortest program in bytes wins.
Follow the spirit, not the letter, of the rules.
Is trailing newline okay? – Winny – 2016-08-01T09:03:23.150
@Winny yes, it is ok – dkudriavtsev – 2016-08-01T20:23:21.310
Is a filename part of the contents of a file? – CousinCocaine – 2016-08-12T20:36:54.683