2013-06-05 21:47:54 +00:00
|
|
|
file i, o;
|
|
|
|
|
text s;
|
|
|
|
|
|
2018-06-22 20:57:24 +00:00
|
|
|
i.open("input.txt", OPEN_READONLY, 0);
|
|
|
|
|
o.open("output.txt", OPEN_CREATE | OPEN_TRUNCATE | OPEN_WRITEONLY,
|
2013-06-05 21:47:54 +00:00
|
|
|
0644);
|
|
|
|
|
|
2018-06-22 20:57:24 +00:00
|
|
|
while (i.line(s) ^ -1) {
|
|
|
|
|
o.text(s);
|
|
|
|
|
o.byte('\n');
|
2013-06-05 21:47:54 +00:00
|
|
|
}
|