RosettaCodeData/Task/File-input-output/Io/file-input-output.io

10 lines
165 B
Io
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
inf := File with("input.txt") openForReading
outf := File with("output.txt") openForUpdating
while(l := inf readLine,
outf write(l, "\n")
)
inf close
outf close