Definition: | puts(integer fn, object x) |
Description: | Output, to file or device fn, a single byte (atom) or sequence of bytes. The low order 8-bits of each value is actually sent out. If fn is the screen you will see text characters displayed. |
Comments: | When you output a sequence of bytes it must not have any (sub)sequences within it. It must be a atoms only (typically ascii codes), or a string. |
Example 1: |
puts(SCREEN, "Enter your first name: ") |
Example 2: |
puts(output, 'A') -- a single byte/character is written to output |
See Also: |
printf,
gets,
open
puts1(s) is a low-level equivalent of puts(1,s), see builtins\puts1h.e (not an autoinclude) and builtins\VM\puts1.e (an autoinclude). |