Thread Tools Display Modes
05-02-13, 05:17 AM   #1
Spawnova
A Warpwood Thunder Caller
 
Spawnova's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2012
Posts: 96
Writing to an ini file possible?

Is it possible to create some type of external file such as ini or txt through wow's lua?

I've googled quite a bit but cannot find anything

Last edited by Spawnova : 05-02-13 at 05:21 AM.
  Reply With Quote
05-02-13, 05:26 AM   #2
Nibelheim
local roygbi-
 
Nibelheim's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2010
Posts: 1,600
Originally Posted by Spawnova View Post
Is it possible to create some type of external file such as ini or txt through wow's lua?

I've googled quite a bit but cannot find anything
Ehhh... kind of. You could save all your information to your AddOn's SavedVariable file and then create a program to extract the data from that once you've exited WoW. Or use WoW's chat/combat logging and then use a program to extract data from that. Either way, information only gets saved to disk upon logout or UI reload and you can't create your own files.
  Reply With Quote
05-02-13, 05:42 AM   #3
Spawnova
A Warpwood Thunder Caller
 
Spawnova's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2012
Posts: 96
Ah, that's to bad but I think reading it from saved variables is actually a good idea thank you =)
  Reply With Quote
05-02-13, 07:35 PM   #4
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
See also:
Things Addons/Macros Can't Do
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Writing to an ini file possible?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off