Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
17
Task/Input-loop/Delphi/input-loop.delphi
Normal file
17
Task/Input-loop/Delphi/input-loop.delphi
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