Alright, I'm relatively new to WOW addons, but not to programming. I spent a few days and learned some lua. I've written a few small things just to get the hang of it. Now i'm working on a larger project and have come across a problem. I am trying to use the following
Code:
io.input("localpathtofile");
What happens is that when my addon loads up I call a function that has this line in it, but WOW barfs back an error. I have a Addmessage() line right before this that does display properly, but the one after the io line does not display at all. I thought possibly it was because the path must be relative to the Interface directory and I tried adjusting it, but that did not work either. Is this function allowed? Please help me out here. I've tried posting a few places with no response. (This mod has no dependencies).