File input/output: Difference between revisions

Changed to follow task description
No edit summary
(Changed to follow task description)
Line 797:
 
=={{header|Erlang}}==
 
This version uses the built-in function file:copy/2.
<lang erlang>file:copy("input.txt","output.txt").</lang>
-module( file_io ).
 
-export( [task/0] ).
 
task() ->
{ok, Contents} = file:read_file( "input.txt" ),
ok = file:write_file( "output.txt", Contents ).
</lang>
 
=={{header|F Sharp|F#}}==
Anonymous user