iOS write to file issue

Gerry gerry.orkin at
Mon Dec 2 13:50:22 EST 2013

This what I use for writing text files. Works everywhere. 

On writefile fileTowrite,dataTowrite
  # write a text file with some text
   set the defaultFolder to specialFolderPath("Documents")
   put dataTowrite into URL (("file:"&fileTowrite&".txt"))
end writefile

Sent from my iPad

> On 3 Dec 2013, at 3:24 am, Sergio Schvarstein <sschvarstein at> wrote:
> Hi,
> I am trying to write a simple text file in iOS. It works OK in iOS simulator but it doesn’t work on a device.

More information about the Use-livecode mailing list