Anonymous user
File input/output: Difference between revisions
m
→Icon and Unicon: header simplification
m (Fixed the order of Erlang & F# entries) |
m (→Icon and Unicon: header simplification) |
||
Line 729:
close,/all</lang>
==
Icon and Unicon I/O by default is line driven. This can be changed with options in open and by the use of reads() and writes().
<lang Icon>procedure main()
in := open(f := "input.txt","r") | stop("Unable to open ",f)
Line 737:
while write(out,read(in))
end</lang>
▲==={{header|Unicon}}===
=={{header|J}}==
|