Jump to content

Hello world/Line printer: Difference between revisions

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

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.