[RMVX ACE] OPENING AN EXTERNAL .TXT FILE IN GAME
Posts
Pages:
1
So in my game, there's a help option that you can access off the menu. I want it to open an external .txt file using a script call or some method in game. I used to know how to do this, but I've forgotten the exact script call that you needed to do it, I don't remember needing a script but if you did can someone please tell me how or what to do?
If you check the help file, under the ruby standard library, there are functions to deal with files.
You're probably looking for this:
You're probably looking for this:
open(path, mode) do |f| f.each_line do |line| # do something with the line here end end
I thought this was asking about opening a TXT file with an external program, such as Notepad, or whatever. Which I think is possible, I just don't remember what the code was. I think one of the horror games I played/reviewed had files open in NotePad, but, I cannot remember for the life of me which one it was. I wonder if GreatRedSpirit might know?
*Edit: However, if you're looking to read/write to a TXT file, coelocanth's script should suffice.
*Edit: However, if you're looking to read/write to a TXT file, coelocanth's script should suffice.
Pages:
1















