|

Ruby Programming Examples: Email, Encryption, Zip, HTTP, XML, FTP
Chilkat Software Components
Ruby Script: Save String To File
Back
Ruby script to save a string to a file.
# Save a string to a file.
myStr = "This is a test"
aFile = File.new("myString.txt", "w")
aFile.write(myStr)
aFile.close
|