Data update
This commit is contained in:
parent
81fd053722
commit
52a6ef48dd
10248 changed files with 63654 additions and 6775 deletions
17
Task/Input-loop/Delphi/input-loop.pas
Normal file
17
Task/Input-loop/Delphi/input-loop.pas
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
program InputLoop;
|
||||
|
||||
{$APPTYPE CONSOLE}
|
||||
|
||||
uses SysUtils, Classes;
|
||||
|
||||
var
|
||||
lReader: TStreamReader; // Introduced in Delphi XE
|
||||
begin
|
||||
lReader := TStreamReader.Create('input.txt', TEncoding.Default);
|
||||
try
|
||||
while lReader.Peek >= 0 do
|
||||
Writeln(lReader.ReadLine);
|
||||
finally
|
||||
lReader.Free;
|
||||
end;
|
||||
end.
|
||||
Loading…
Add table
Add a link
Reference in a new issue