blob: bbacb74095e917689c3c4d513d18d5ebd0a79c46 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
{%skiptarget=wince}
program tb0532;
{Append was the recommended way to open devices in TP.
A pitfall is that you cannot seek to the end of a device.
It has to work on modern platforms too, because:
- Rewrite will destroy the device on platforms where devices are
files.
- Reset doesn't allow writing to the device.
}
{$I+}
var null:text;
begin
{$ifdef Unix}
assign(null,'/dev/null');
{$else}
assign(null,'NUL');
{$endif}
append(null);
writeln(null,'Text disappearing into the black hole.');
close(null);
end.
|