/ Published in: Ruby
![](/img/icon_sav.png?v3)
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
# Save a string to a file. myStr = "This is a test" aFile = File.new("myString.txt", "w") aFile.write(myStr) aFile.close
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)