June 2018 Update

This commit is contained in:
Ingy döt Net 2018-06-22 20:57:24 +00:00
parent ba8067c3b7
commit 22f33d4004
5278 changed files with 84726 additions and 14379 deletions

View file

@ -1,5 +1,6 @@
{{omit from|PARI/GP}}
{{omit from|ML/I|Does not have printer-related functions}}
{{omit from|SQL PL|It does not handle attached devices}} <!-- The only way is with an external procedure implemented in Java or C that directly writes in the printer. -->
;Task:
Cause a line printer attached to the computer to print a line containing the message: &nbsp; <big><code> Hello World! </code></big>

View file

@ -0,0 +1,6 @@
(ns rosetta-code.line-printer
(:import java.io.FileWriter))
(defn -main [& args]
(with-open [wr (new FileWriter "/dev/lp0")]
(.write wr "Hello, World!")))

View file

@ -0,0 +1 @@
Hello World!