fpc/docs/crtex/ex1.pp
1998-03-25 11:26:49 +00:00

14 lines
240 B
ObjectPascal

Program Example1;
uses Crt;
{ Program to demonstrate the AssignCrt function. }
var
F : Text;
begin
AssignCrt(F);
Rewrite(F); { Don't forget to open for output! }
WriteLn(F,'This is written to the Assigned File');
Close(F);
end.