File input/output: Difference between revisions

(Icon)
Line 625:
== Icon and Unicon ==
==={{header|Icon}}===
<lang Icon>procedure main()
in := open(f := "input.txt","r") | stop("Unable to open ",f)
out := open(f := "output.txt","w") | stop("Unable to open ",f)
while write(out,read(in))
end</lang>
 
==={{header|Unicon}}===
The Icon solution works in Unicon.
 
 
=={{header|J}}==
Anonymous user