Return to Snippet

Revision: 22348
at January 10, 2010 13:23 by webonomic


Initial Code
# Save a string to a file.
myStr = "This is a test"
aFile = File.new("myString.txt", "w")
aFile.write(myStr)
aFile.close

Initial URL

                                

Initial Description

                                

Initial Title
Ruby script to save a string to a file.

Initial Tags
file

Initial Language
Ruby