Issues with writing Files to specialFolderPath("documents")

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
ace16vitamine
Posts: 130
Joined: Fri Apr 13, 2018 1:53 pm

Issues with writing Files to specialFolderPath("documents")

Post by ace16vitamine » Wed Aug 30, 2023 12:04 pm

Dear all,

I need to write a file to specialFolderPath("documents") on iOS Simulator.

As Test, this does not work:

put specialFolderPath("documents") & "/SetUp.txt" into myFile
open file myFile for write
put "TEST" into myText
write myText to file myFile
close file myFile

Any Ideas why? The folder is empty.

Stefan

ace16vitamine
Posts: 130
Joined: Fri Apr 13, 2018 1:53 pm

Re: Issues with writing Files to specialFolderPath("documents")

Post by ace16vitamine » Wed Aug 30, 2023 1:35 pm

Spooky, this does work:

set the defaultFolder to specialFolderPath("documents")
put "" into URL ("file:orders.txt")


Seems that
"put specialFolderPath("documents")" does not work :-/

Hm... Issue solved

Post Reply

Return to “iOS Deployment”