The task is to create a new file called "TAPE.FILE" of any size on Magnetic Tape.

import std.stdio;
 
void main() {
    version(Windows) {
        File f = File("TAPE.FILE", "w");
    } else {
        File f = File("/dev/tape", "w");
    }
    f.writeln("Hello World!");
}