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

  1. Program Example20;
  2.  
  3. { Program to demonstrate the Erase function. }
  4.  
  5. Var F : Text;
  6.  
  7. begin
  8.   { Create a file with a line of text in it}
  9.   Assign (F,'test.txt');
  10.   Rewrite (F);
  11.   Writeln (F,'Try and find this when I''m finished !');
  12.   close (f);
  13.   { Now remove the file }
  14.   Erase (f);
  15. end.
  16.