Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

text file in subfolder

in General Posts: 10

Hello

I can read and save text file in my Project folder: readText(“Project:myFile”)
Is there a way to create sub folder and then save files there ? Just to be cleaner: readText(“Project:myFolder:myFile”) ?

Comments

  • SimeonSimeon Admin Mod
    edited June 23 Posts: 5,054

    Try using readText("Project:myFolder/myFile") — if it works it's not intentional but it might, given the way this was implemented.

    Hmm but you can't create the subfolder yet. I think this works where you have direct access to folder creation via the Files app (e.g., dropbox, documents) but not for projects.

  • Posts: 10

    Huhu ... Thanks @Simeon it works ! And to create the sub folder I use Working Copy easy ... The next question will be, will that work when you export that to Xcode :) But I will ask again when I am at that step.

    Thanks ...

  • SimeonSimeon Admin Mod
    Posts: 5,054

    @dlpnet it should work, try to keep your assets in the "Project" asset pack as Documents and Dropbox are not as easy to get working under Xcode exported projects

  • Posts: 10

    Just to close the topic, it works just fine on the device, multiple sub folders under Project.

This discussion has been closed.