Anonymous user
File input/output: Difference between revisions
→[[Ruby]]
Line 340:
begin
File.open("output.txt","w") {|f| f << IO.read("input.txt")}
rescue Exception => e
$stderr.puts "Exception raised: #{e}"
|
Line 340:
begin
File.open("output.txt","w") {|f| f << IO.read("input.txt")}
rescue Exception => e
$stderr.puts "Exception raised: #{e}"
|