CRT Documentation: Reference |
Associates a text file with the Crt window.
procedure AssignCrt( var f: Text );
AssignCrt works exactly like the AssignFile standard procedure except that no file name is specified. Instead, the text file is associated with the Crt.
More than two text files may be associated with the Crt at a time, but all text files will share the same cursor position information, and access must be synchronized if multiple threads may be writing to the Crt at once.
Upon return, you can pass f to either Reset or Rewrite to either read or write to the Crt (respectively).
Crt Overview, Reset, Rewrite, AssignFile