mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-11-04 16:39:24 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			240 B
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
			
		
		
	
	
			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.
 |