Create a folder/document from inside the game

Hi,
Is it possible to tell the game to create a new .txt document or, idk, a new folder, in one of the existing game's folder via script (or in some other way)?
Honestly I don't really know right now for what purpose, I just wondered if it is possible.🙏
To Save:
Code:
var fs = require('fs'), p = require('path'); fs.writeFileSync(p.dirname(process.mainModule.filename) + '/data/testfile.txt', 'hello world');
...
I've also created a plugin to help with such things, might be useful for you.
The plugin has script calls to help such as:
Spoiler: Script Calls
StorageManager.saveEx('/data/testdata.txt', 'hello world')
StorageManager.loadEx('/data/testdata.txt')
CTB.File.Check('/data/testdata.txt')
CTB.File.WasFound()

It currently is limited to local mode only though... not really sure what I'm doing with webStorage.
Hey @ct_bolt, when you gonna release your TM_JumpAction addon? Lookin forward to that!
To Save:
Code:
var fs = require('fs'), p = require('path'); fs.writeFileSync(p.dirname(process.mainModule.filename) + '/data/testfile.txt', 'hello world');
...
I've also created a plugin to help with such things, might be useful for you.
The plugin has script calls to help such as:
Spoiler: Script Calls
StorageManager.saveEx('/data/testdata.txt', 'hello world')
StorageManager.loadEx('/data/testdata.txt')
CTB.File.Check('/data/testdata.txt')
CTB.File.WasFound()

It currently is limited to local mode only though... not really sure what I'm doing with webStorage.
THIS is awesome!
Just an elucidation, these:

CTB.File.Check('/data/testdata.txt')
CTB.File.WasFound()

check if there is already a file with the same name, right?
THIS is awesome!
Just an elucidation, these:

CTB.File.Check('/data/testdata.txt')
CTB.File.WasFound()

check if there is already a file with the same name, right?
Aww thanks, I do what I can. lol 😉

Yep you got it.
1590078377639.png
@Cormorant42 Please avoid hijacking other people's threads, and please try to stay on topic if you are going to post in a thread. Thank you.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/create-a-folder-document-from-inside-the-game.121851/