[RMXP]Text file exporting

Is there a way RPG Maker XP can export a .txt file in the game folder?
If I'm clear on what you're asking, basically you're saying to like make a text file in game and export it? Yep, I believe that's possible, here's a sample method that displays how it's done:

  1. def export_txt
  2.     # Make outfile
  3.     outfile = File.new("example.txt", "w")
  4.     # Write Heading
  5.     outfile.write "EXAMPLE TEXT FILE\n\n"
  6.     # Finish (Close File)
  7.     outfile.close
  8.   end
Expand to see the code.


Try sticking this method in Scene_Title and you should get a new text file everytime you start the game. Hope this helps :)
That was exactly what I was looking for! Thank you very much!

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=76560