Skip to main content
deleted 18 characters in body
Source Link
the Tin Man
  • 160.9k
  • 44
  • 222
  • 308

Try

File.open("out.txt", "w") do |f|  f.write(data_you_want_to_write) end 

without using the

File.new "out.txt" 

I hope this helps.

Try

File.open("out.txt", "w") do |f| f.write(data_you_want_to_write) end 

without using the

File.new "out.txt" 

I hope this helps.

Try

File.open("out.txt", "w") do |f|  f.write(data_you_want_to_write) end 

without using the

File.new "out.txt" 
Source Link
GMD
  • 694
  • 5
  • 12

Try

File.open("out.txt", "w") do |f| f.write(data_you_want_to_write) end 

without using the

File.new "out.txt" 

I hope this helps.