How to download a file on the middle of a game to the game folder?

Like what DDLC did that you suddenly found files on the game folder?
Also, on the new game of miwashiba!!! Is any script like that excist? I don't know how it called so it's hard to find
It's hard to find because it doesn't exist. Attempt to connect a VXA game.exe to the internet is not an easy task. Probably impossible, but maybe it's possible, idk.

You might get better luck if you use MV, but then again I don't use MV.

Edit: Or were u asking about VNM? Because I see you're using VNM and mentioned DDLC, that this thread might happen to get created in the wrong room?
No, I'm not making a vn!
I didn't decide for a program yet, I thought to do it with MV or VXA because I have both, thank you for replying!
Do you want the game to generate a file on the fly? Or actually download one from the internet? Because at least in VX Ace it's possible to generate (and read from) a .ini file, but as TheoAllen said it's probably nearly impossible to download something from a server (plus not having an internet connection could completely break the game).
Do you want the game to generate a file on the fly? Or actually download one from the internet? Because at least in VX Ace it's possible to generate (and read from) a .ini file, but as TheoAllen said it's probably nearly impossible to download something from a server (plus not having an internet connection could completely break the game).
The first one!
Ok, and what kind of file do you want to create? A text file, an image maybe?
Ok, and what kind of file do you want to create? A text file, an image maybe?
A text file! Perhaps pdf!
Making PDF is more complex than you thought. If you just want to create txt file
Code:
File.open("filename.txt", "w+") do |file|
   Marshal.dump("Write text here", file)
end
Making PDF is more complex than you thought. If you just want to create txt file
Code:
File.open("filename.txt", "w+") do |file|
   Marshal.dump("Write text here", file)
end
Thank you!! It's a script code for the game, correct?
It's script call
It's script call
A little question "/n" is used for writing another line, right?
Yes, but it's using \n

Original thread: https://forums.rpgmakerweb.com/threads/how-to-download-a-file-on-the-middle-of-a-game-to-the-game-folder.102143/