Write in TXT file in iPad

Hello dear,

I can not write data into a TXT file, which is within the Iphone, and as if he does not let you do write, read only, it works fine in Corona SDK and Android device, however the Iphone, so I can read. Would anyone know how to help me?

local dados = system.pathForFile( "dados.txt", system.DocumentsDiretory);

local file = io.open(dados, "w")

if file then

file:write("Hello World!!!!\n")

io.close(file);
end

Tranks!!

@andreBessaart0,

typo!! Spelling mistake...

DocumentsDire'C'tory

cheers,

?:)

views:1532 update:2011/9/26 8:07:09
corona forums © 2003-2011