www.modula7.org - Official Website of the Modula-7 Programming Language
Modula-7 Tutorial: Simple Scripting
Part 1
    Writing a single line of output to the console is as simple as saying:
WriteLn("Hello World!");
The string of characters enclosed in double quotes is the text to be written to the console. To cause an empty line to appear in the output, use the WriteLn statement without any parameters:
WriteLn;
Special characters can be embedded as part of the string. There are several ways to do it. For example, let's say that you wanted to include a double-quote character within the output string. One way of accomplishing it is to double the double quote. Here is an example:
WriteLn("Hello ""Modula-7"" World!");
The above line will cause the following output
Hello "Modula-7" World!
to be sent to the console. Alternatively, you could encode the double quotes using the Modula-7 character-encoding codes. For this particular example, we need the double quote that has the (decimal) ASCII value of 34:
"Hello "#34"Modula-7"#34" World!"
"High thoughts must have a high language." [Aristophanes]