Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
11
Task/File-input-output/Aime/file-input-output.aime
Normal file
11
Task/File-input-output/Aime/file-input-output.aime
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
file i, o;
|
||||
text s;
|
||||
|
||||
i.open("input.txt", OPEN_READONLY, 0);
|
||||
o.open("output.txt", OPEN_CREATE | OPEN_TRUNCATE | OPEN_WRITEONLY,
|
||||
0644);
|
||||
|
||||
while (i.line(s) ^ -1) {
|
||||
o.text(s);
|
||||
o.byte('\n');
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue