Print itself: Difference between revisions

Content added Content deleted
(added 11l implementation)
Line 67: Line 67:
=={{header|Nanoquery}}==
=={{header|Nanoquery}}==
<lang Nanoquery>println new(Nanoquery.IO.File).open(args[1]).readAll()</lang>
<lang Nanoquery>println new(Nanoquery.IO.File).open(args[1]).readAll()</lang>

=={{header|Nim}}==
We suppose that the source file is in the same directory as the executable file.
<lang Nim>import os

let execFile = getAppFilename()
let sourceFile = execFile.addFileExt("nim")
stdout.write sourceFile.readFile()</lang>


=={{header|Perl}}==
=={{header|Perl}}==