Prev Previous Post   Next Post Next
Old 08-23-2011, 04:57 PM
jbob182's Avatar
jbob182 jbob182 is offline
X-Fi2 Development Moderator
Join Date: Feb 2010
Location: The U.S.A.
Posts: 554

I made it work by downloading and including the missing .dll, but thanks for the fix. I found that reference already as well online. Now my only issue is that it creates the folder, but I can't write to it, it says it doesn't exist, can't figure out why... Guess I need to head to bed soon, it's getting late. Thanks for the help! I'll hopefully have it working by tomorrow.
I can, here is the code i use:

require "lfs"
lfs.mkdir (lfs.currentdir () .. "/HelloWorldDir")
myfile ="/HelloWorldDir/TextFile.txt","w+")
myfile:write("Hello World!")
After testing around, you would only get that error if the dir didnt exist, so you must be missing this part :lfs.currentdir () ..

Last edited by jbob182; 08-23-2011 at 05:09 PM.
Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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

Forum Jump

All times are GMT -5. The time now is 01:37 PM.