Here’s an example showing how you might write out a simple string to a file:
f = File.open("some-file.txt", "w") name = "Jared Prickel" f << "Hello, " << name << "\n" f.close