Creating external .txt files.

Hello! Currently I'm making a game in RPG Maker XP and need there to be a part where the game creates a text file inside the game directory before closing itself, would there be a feasible way to do this?
There's a very easy way indeed!

Ruby:
file = File.open("your file.txt", "w")
file.puts "Your Message Here"
file.close

Add as many calls to file.puts as deemed necessary.
file.close should be the last line of that file creation section!
Thanks man! :ahappy:

Original thread: https://forums.rpgmakerweb.com/threads/creating-external-txt-files.172418/