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!!
[import]uid: 57267 topic_id: 14930 reply_id: 314930[/import]

@andreBessaart0,

typo!! Spelling mistake…

DocumentsDire’C’tory

cheers,

?:slight_smile: [import]uid: 3826 topic_id: 14930 reply_id: 55146[/import]