Language:
Русский
English
{Eof.PAS}
▀▀▀▀▀▀▀▀▀▀▀
{Sample code for the Eof, Read, and Write functions (text files).}
uses WinCrt,WinDos;
var
F: Text;
Ch: Char;
begin
{ Get file to read from command line }
Assign(F, ParamStr(1));
Reset(F);
while not Eof(F) do
begin
Read(F, Ch);
Write(Ch); { Dump text file }
end;
end.