[RMXP] export events to text file

Is there a way to export all of the events to a text file? I don't want to have to manually copy every single event in my game, there are a lot of them and I might miss some.

I don't need to import them again. The only important thing is that I want all of the events in a single file so I can CTRL+F that file to find what I'm looking for without having to search through my entire project.
That should be what you've searched for:

~炬燵あ
Thank you for the script. I had to make some changes to it. The script stores the entire string in memory before displaying it. For large projects, that results in large memory usage and a long run time. I changed it to output the text after every map, instead of all at once in the end.

Original thread: https://forums.rpgmakerweb.com/threads/rmxp-export-events-to-text-file.144899/