/ Published in: Ruby
Expand |
Embed | Plain Text
# Save a string to a file. myStr = "This is a test" aFile = File.new("myString.txt", "w") aFile.write(myStr) aFile.close
You need to login to post a comment.
# Save a string to a file. myStr = "This is a test" aFile = File.new("myString.txt", "w") aFile.write(myStr) aFile.close
You need to login to post a comment.