Is there any way to write a file to the sdcard?

Is there? [import]uid: 147045 topic_id: 25984 reply_id: 325984[/import]

Needing this too … in 2013 =/ [import]uid: 125477 topic_id: 25984 reply_id: 144608[/import]

If anyone read this … i was able to make it work writing the full path

enable the external_write permission on the build.settings with
“android.permission.WRITE_EXTERNAL_STORAGE”,

then

local lfile = io.open("/mnt/local/test.txt",“w”)
lfile:write(“test”)
lfile:close()
to a sd card the path would be /mnt/sdcard/test.txt at least on my device

hope it helps someone … [import]uid: 125477 topic_id: 25984 reply_id: 144616[/import]

Needing this too … in 2013 =/ [import]uid: 125477 topic_id: 25984 reply_id: 144608[/import]

If anyone read this … i was able to make it work writing the full path

enable the external_write permission on the build.settings with
“android.permission.WRITE_EXTERNAL_STORAGE”,

then

local lfile = io.open("/mnt/local/test.txt",“w”)
lfile:write(“test”)
lfile:close()
to a sd card the path would be /mnt/sdcard/test.txt at least on my device

hope it helps someone … [import]uid: 125477 topic_id: 25984 reply_id: 144616[/import]

Needing this too … in 2013 =/ [import]uid: 125477 topic_id: 25984 reply_id: 144608[/import]

If anyone read this … i was able to make it work writing the full path

enable the external_write permission on the build.settings with
“android.permission.WRITE_EXTERNAL_STORAGE”,

then

local lfile = io.open("/mnt/local/test.txt",“w”)
lfile:write(“test”)
lfile:close()
to a sd card the path would be /mnt/sdcard/test.txt at least on my device

hope it helps someone … [import]uid: 125477 topic_id: 25984 reply_id: 144616[/import]

Needing this too … in 2013 =/ [import]uid: 125477 topic_id: 25984 reply_id: 144608[/import]

If anyone read this … i was able to make it work writing the full path

enable the external_write permission on the build.settings with
“android.permission.WRITE_EXTERNAL_STORAGE”,

then

local lfile = io.open("/mnt/local/test.txt",“w”)
lfile:write(“test”)
lfile:close()
to a sd card the path would be /mnt/sdcard/test.txt at least on my device

hope it helps someone … [import]uid: 125477 topic_id: 25984 reply_id: 144616[/import]