Hello world/Line printer: Difference between revisions
Content added Content deleted
(add RPL) |
(Replaced "writeln" which no longer exists with "writeLine".) |
||
Line 764: | Line 764: | ||
Assuming that the line printer is attached to /dev/lp0: |
Assuming that the line printer is attached to /dev/lp0: |
||
<syntaxhighlight lang="nim">var lp = open("/dev/lp0", fmWrite) |
<syntaxhighlight lang="nim">var lp = open("/dev/lp0", fmWrite) |
||
lp. |
lp.writeLine "Hello World" |
||
lp.close()</syntaxhighlight> |
lp.close()</syntaxhighlight> |
||