Ruby: Open A File, Write To It, And Close It In One Line
Join the DZone community and get the full member experience.
Join For Free
File.open(local_filename, 'w') {|f| f.write(doc) }
Opinions expressed by DZone contributors are their own.
Join the DZone community and get the full member experience.
Join For Free
File.open(local_filename, 'w') {|f| f.write(doc) }
Opinions expressed by DZone contributors are their own.
The likes didn't load as expected. Please refresh the page and try again.
ADVERTISE
CONTRIBUTE ON DZONE
LEGAL
CONTACT US
Comments