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>
 
== {{header|Icon}} and {{header|Unicon }}==
==={{headerworks with|Unicon}}===
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().
==={{header|Icon}}===
<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}}===
The Icon solution works in Unicon.
 
=={{header|J}}==
Anonymous user