I’m trying to write a text file to a folder inside my documents folder. The Language Reference Docs only cover “SpecialFolder.Desktop” Here’s what I have so far:
Dim file As FolderItem = SpecialFolder.Documents.Child.(“Vocabulary_Files”).Child(“Vocabfile2.txt”)
Have you checked if the folder Vocabulary_Files exists?
The folder must exist before you can write files into that folder.
See FolderItem.CreateAsFolder
Can I tack on a problem I have with SpecialFolder?
this code
<f = SpecialFolder.Preferences.child(“XojoTestFile”)
stream = f.CreateTextFile
stream.writeLine “File test”
stream.close>
“works” but I can’t find it in the Preferences folder. So where is it? What is the path to see where it is saved?
I am using High Sierra.