I'm crazy out with this code

My code is attempt to copy the text file from "engine folder" to "Documents folder" but
in my Iphone 4 the message is ever "File not found".
Any hints ?
Code: Select all
on preOpenStack
if the environment is "mobile" then
put "file:" & specialFolderPath("engine") & "/dati.txt" into vEngine
put "file:" & specialFolderPath("documents") & "/dati.txt" into vDocuments
if there is a file url vDocuments then
answer "The file is present, step 1"
put url vDocuments into fDocuments
if fDestinazione is empty then
answer "The file is present but is empty, step 1.1"
put url vEngine into fDocuments
put fDocuments into url vDocuments
close file vDocuments
else
answer "The file is present and is not empty step 1.2"
end if
else
answer "The file not found, step 1.3"
put url vEngine into fDestinazione
put fDocuments into url vDocuments
close file vDocuments
end if
//New check
wait 25 milliseconds with messages
if not (there is a file url vDocuments) then answer "The file not found Step 2"
try
catch pErr
answer pErr
end try
end if
end preOpenStack