Output |
Input and Output | |
Aptilis 1 |
Output(Expr1, Expr2, Variable1, Variable2, etc...)
Output outputs expressions or variables to the standard output exactly as
Print does.
The only difference is that on Windows platforms, output is not going to
try to be clever and replace all occurences of "\n" by "\r\n".
This can be very annoying when you're outputing binary data such as pictures,
where the data must be left unchanged.
This may work but is BAD and may not work most of the times on a Windows platform:
g = loadFile("image.gif") $ print("Content-type: picture/gif\n\n") print(g$)This is better and portable:
g = loadFile("image.gif") $ print("Content-type: picture/gif\n\n") output(g$)
See Print for examples and the value returned.