*/
Do you receive the Programmer's Heaven newsletter? If not, why not subscribe?
*/

View \READFILE.PAS

This is the second disk of the PASCAL TUTOR system. It has the

Submitted By: WEBMASTER
Rating: (Not rated) (Rate It)


(* Chapter 11 - Program 1 *)
program Read_A_File;

var Turkey     : TEXT;
    Big_String : string[80];

begin  (* main program *)
   Assign(Turkey,'READFILE.PAS');
   Reset(Turkey);
   while not Eof(Turkey) do begin
      Readln(Turkey,Big_String);
      Writeln(Big_String);
   end(* of while loop *)
   Close(Turkey);
end(* of program *)

corner
© 1996-2008 CommunityHeaven LLC. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
North American business development: Nicolai Wadstrom. Publisher: Lars Hagelin.