Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
6
Task/File-input-output/Pop11/file-input-output-1.pop11
Normal file
6
Task/File-input-output/Pop11/file-input-output-1.pop11
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
lvars i_stream = discin('input.txt');
|
||||
lvars o_stream = discout('output.txt');
|
||||
lvars c;
|
||||
while (i_stream() ->> c) /= termin do
|
||||
o_stream(c);
|
||||
endwhile;
|
||||
7
Task/File-input-output/Pop11/file-input-output-2.pop11
Normal file
7
Task/File-input-output/Pop11/file-input-output-2.pop11
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
lvars i_file = sysopen('input.txt', 0, true);
|
||||
lvars o_file = syscreate('output.txt', 1, true);
|
||||
lvars buff = inits(4096);
|
||||
lvars i;
|
||||
while (sysread(i_file, buff, length(buff)) ->> i) > 0 do
|
||||
syswrite(o_file, buff, i);
|
||||
endwhile;
|
||||
Loading…
Add table
Add a link
Reference in a new issue