Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
32
Task/Input-loop/Pascal/input-loop.pas
Normal file
32
Task/Input-loop/Pascal/input-loop.pas
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{ for stdio }
|
||||
|
||||
var
|
||||
|
||||
s : string ;
|
||||
|
||||
begin
|
||||
|
||||
repeat
|
||||
|
||||
readln(s);
|
||||
|
||||
until s = "" ;
|
||||
|
||||
{ for a file }
|
||||
|
||||
var
|
||||
|
||||
f : text ;
|
||||
s : string ;
|
||||
|
||||
begin
|
||||
|
||||
assignfile(f,'foo');
|
||||
reset(f);
|
||||
|
||||
while not eof(f) do
|
||||
readln(f,s);
|
||||
|
||||
closefile(f);
|
||||
|
||||
end;
|
||||
Loading…
Add table
Add a link
Reference in a new issue