Hello world/Line printer: Difference between revisions

Content added Content deleted
No edit summary
No edit summary
Line 208: Line 208:
CloseFile(lPrinterAsTextFile);
CloseFile(lPrinterAsTextFile);
end.</lang>
end.</lang>

=={{header|ERRE}}==
<lang ERRE>
! Hello World in ERRE language
PROGRAM HELLO
BEGIN
!$REDIR
PRINT("Hello World !")
!NOREDIR
END PROGRAM
</lang>

Prints on LPT1: (if exists) without opening a file


=={{header|Factor}}==
=={{header|Factor}}==
Line 633: Line 646:
The CR+LF can simply be included in the string as shown.
The CR+LF can simply be included in the string as shown.
Another method is to include the CR+LF control characters as ^M^J.
Another method is to include the CR+LF control characters as ^M^J.

=={{header|ERRE}}==
<lang ERRE>
! Hello World in ERRE language
PROGRAM HELLO
BEGIN
!$REDIR
PRINT("Hello World !")
!NOREDIR
END PROGRAM
</lang>

Prints on LPT1: (if exists) without opening a file