Write

This is an old revision of Write, edited by Jwdietrich at . The current revision is 31971.

categorization

Write is a keyword which indicates that some data must be written on the screen (by default) or to a file. For example:

var
  a, b: Integer;
begin
  a := 42;
  b := 23;
  write('a=', a, ' and b=', b);
end

This prints on screen: a=42 and b=23

Parameters in the Write procedure must be separated by a comma (',').

WriteLn behaves just like Write, except it leaves (a) newline character(s) after the text.