Thread Tools Display Modes
06-10-10, 05:43 PM   #1
luwak
A Defias Bandit
Join Date: Jun 2010
Posts: 2
File handling

hi im very new with lua, how do i load file from lua? like "test.log"
i have tried use io.open and always get error msg. thanks
  Reply With Quote
06-10-10, 05:44 PM   #2
Starinnia
Ninja Code Monkey
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 84
The WoW Lua environment does not include some of the normal Lua libraries, such as io.

You cannot read or write files from a WoW AddOn.
  Reply With Quote
06-10-10, 05:55 PM   #3
luwak
A Defias Bandit
Join Date: Jun 2010
Posts: 2
aw i had three hours to find a way how to read the file, btw thanks alot
  Reply With Quote
06-10-10, 09:11 PM   #4
jeffy162
A Pyroguard Emberseer
 
jeffy162's Avatar
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 2,364
Try opening the file with "Notepad" if you're on a Window's system.
  Reply With Quote
06-11-10, 05:35 AM   #5
Ferous
Sheer Sense of Doom
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 863
If your looking to mess with Lua alot, check out Notepad++
  Reply With Quote
06-23-10, 10:52 AM   #6
alexdwsn12
A Defias Bandit
Join Date: Jun 2010
Posts: 2
You can also open in Edit Plus which is the same as Notepad++. There is no big difference between them.
__________________
16gb usb drive
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » File handling

Thread Tools
Display Modes

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