next up previous contents index
Next: BigCursor Up: Procedures and Functions Previous: Procedures and Functions

AssignCrt

   

Declaration:

Procedure AssignCrt (Var F: Text) ;

Description:

Assigns a file F to the console. Everything written to the file F goes to the console instead. If the console contains a window, everything is written to the window instead.

Errors:

None.

See also:

Window

Example
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.



Michael Van Canneyt
Thu Sep 10 13:59:33 CEST 1998