June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
|
|
@ -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: <big><code> Hello World! </code></big>
|
||||
|
|
|
|||
|
|
@ -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!")))
|
||||
|
|
@ -0,0 +1 @@
|
|||
Hello World!
|
||||
Loading…
Add table
Add a link
Reference in a new issue