/ Published in: Ruby
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