Is it possible to read a text file from WoW addon? Does it have to be in xml format or something? I know I don't have access to I/O. I just have a file that is in some format for historical reasons and I'd like to use it in game.
Is it possible to read a text file from WoW addon? Does it have to be in xml format or something? I know I don't have access to I/O. I just have a file that is in some format for historical reasons and I'd like to use it in game.
this is vague... lua can read .txt but idk if the function is allowed in wow. you only want to look at it in wow? why not just tab out then... more info on what you want to be would be helpful
Lua can, but lua IO is blocked in WoW. I've already tried. What I need: I have an old kinda script that I read in lua, parse it and do actions based on it. I don't just want to read it. In programming section -> read means read file into memory
The workaround is of course obvious, I include the script in the lua script as a string...
Last edited by kixer; 10-23-2010 at 10:42 PM.
I really don't know if you understood what I wanted. I wanted to be able to read programmatically a text file into my addon. Not any addon that you can download on curse.com, but my own addon that I was writing. I needed to open the file and read it's content to memory. Not to read it with my eyes.
Edit: Can I somehow lock this thread? I don't need this anymore and I know that it can't be done the way I wanted.
Last edited by kixer; 10-25-2010 at 08:38 AM.