ex9.pp 331 B

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