Hello world/Line printer: Difference between revisions

No edit summary
Line 566:
 
=={{header|M2000 Interpreter}}==
We can use printer like a page printer
<lang M2000 Interpreter>
Printer {
Line 574 ⟶ 575:
Report "Hello World!" \\ proportional printing with word wrap, for text, can apply justification and rendering a range of text lines
}
</lang>
 
Or we can use ANSI output using a file for export in Lpt1
 
<lang M2000 Interpreter>
Try ok {
Open "Lpt1" For OutPut As N '' prints to Lpt1 if exist a printer
Print #N, "Hello World!"
Close #N
}
If Not Ok Then Print "Can't Print"
</lang>
 
If we have a file in current dir we can use a Dos command:
<lang M2000 Interpreter>
Dos "Print /d:lpt1 file " +quote$(dir$+"this.txt")
</lang>
 
Anonymous user