home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng)
/
ProfitPress-MegaCDROM2.B6I
/
PROG
/
PASCAL
/
PASTUT24.ZIP
/
PTUTRSRC.ZIP
/
READFILE.PAS
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
Pascal/Delphi Source File
|
1989-12-01
|
473 b
|
25 lines
(* 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 *)
{ Result of execution
(This file is displayed on the monitor)
}