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

Quote:
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:

Code:
require "lfs"
lfs.mkdir (lfs.currentdir () .. "/HelloWorldDir")
myfile = io.open("/HelloWorldDir/TextFile.txt","w+")
myfile:write("Hello World!")
io.close(myfile)
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 04: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 02:23 AM.