home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2000 #5 / Amiga Plus CD - 2000 - No. 5.iso / Tools / Dev / fpc / source / docs / refex / ex9.pp < prev    next >
Encoding:
Text File  |  2000-01-01  |  331 b   |  16 lines

  1. Program Example9;
  2.  
  3. { Program to demonstrate the Close function. }
  4.  
  5. Var F : text;
  6.  
  7. begin
  8.  Assign (f,'Test.txt');
  9.  ReWrite (F);
  10.  Writeln (F,'Some text written to Test.txt');
  11.  close (f); { Flushes contents of buffer to disk, 
  12.               closes the file. Omitting this may
  13.               cause data NOT to be written to disk.}
  14. end.
  15.  
  16.