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

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