ex75.pp 400 B

123456789101112131415161718
  1. Program Example75;
  2. { Program to demonstrate the Write(ln) function. }
  3. Var
  4. F : File of Longint;
  5. L : Longint;
  6. begin
  7. Write ('This is on the first line ! '); { No CR/LF pair! }
  8. Writeln ('And this too...');
  9. Writeln ('But this is already on the second line...');
  10. Assign (f,'test.tmp');
  11. Rewrite (f);
  12. For L:=1 to 10 do
  13. write (F,L); { No writeln allowed here ! }
  14. Close (f);
  15. end.