[quote=115278:@Derek DiBenedetto]Thanks Michel and Dave!
Odd, this code gives me “this item does not exist” errors when I try to Build:
t=create(f)
t.write s[/quote]
What is t ? Where do you dim it ? I suppose create is one of your method that accepts a FolderItem ? What is write ? Yet another method of yours as extends ? Or are these functions used in VB ? They are not Xojo commands…
It just wasn’t formatted correctly. This seemed to Build and run fine:
#ElseIf TargetMacOs then
s=svi
f=specialfolder.applicationdata.child("svi.txt")
if not f.exists then
dim tt as textoutputstream = TextOutputStream.Create(f)
tt.write s
tt.close
end if
Tim already told you. A copy file step works just fine.
However, you will need to copy the database to a subfolder of ApplicationData upon the first launch of the app in order to use it. The most common method is to create a subfolder by the name of your application bundle, for instance com.mycompany.myapp, and copy the sqlite into it.