- 4.62.2.98 -
Standard Units
System Unit
System Unit Procedures and FunctionsWrite 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
|
|
|
Win32Platform function |
Table of Content |
WriteLn procedure |
- 4.62.2.98 -