Can you make a trigger that adds and deletes files?

I don't even know if this is possible for RPG Maker MV, But I thought I'd ask.

The best way I can explain what I mean is with Doki Doki Literature Club. When a certain event happens; A word doc appears in the files and then It'll be changed or deleted after another certain point. And I was wondering If there's any way you can possibly do that in MV? (not just Word Doc but pictures too.
Yes files can be created and deleted using javascript. Just be warned do not do malicious things to peoples computers.

You will notice when you save a game, a file is created. That is handled from rpg_managers.js in the folder named js. DataManager and StorageManager handles saves. I suggest learning javascript before continuing to implement game mechanics, or find someone that can do it for you.
Okay! Thank you very much!
Okay! Thank you very much!
You are welcome. What you are looking for is file system module for Node.js It is not a entry level thing to learn. You should start with the basics of javascript which should take about 4 weeks if you are consistent and determined.

Original thread: https://forums.rpgmakerweb.com/threads/can-you-make-a-trigger-that-adds-and-deletes-files.148918/