Previous: 4.67.2.97. Win32Platform function To the Table of Contents Next: 4.67.2.99. WriteLn procedure
4.67.2.97. Win32Platform function Table of Contents 4.67.2.99. WriteLn procedure

- 4.67.2.98. -
Table of Contents
4. Standard Units
4.67. System - Built-in routines
4.67.2. System Unit Procedures and Functions
4.67.2.98. Write procedure


4.67.2.98. Write procedure

Targets: MS-DOS, OS/2, Win32


System Unit

For typed files, writes a variable into a file component. For text files, writes one or more values to the file

Declaration:
procedure Write( [ var F: Text; ] P1 [,P2,...,Pn ];
Remarks:
F, if specified, is a file variable. If omitted Output is assumed.
P1 may be of char, string, integer, real, or Boolean type. P1 through Pn are output to F. Each P parameter may be formatted as follows:
  P [:MinWidth [:Decimals] ]
where P is the value to output. MinWidth, which must be greater than zero, specifies the minimum width of P. Decimals specifies the number of decimal places to be output when P is of real type.

Example:
{$ifndef __CON__}
  This program must be compiled as console application only
{$endif}
begin
  Write('A wonderful string!');
  Write(500);
  Write(5.5:5:2)
  Write(TRUE);
end.
See also:
__writer


Previous: 4.67.2.97. Win32Platform function To the Table of Contents Next: 4.67.2.99. WriteLn procedure
4.67.2.97. Win32Platform function Table of Contents 4.67.2.99. WriteLn procedure

- 4.67.2.98. -