I am trying to create a cross platform air installer that uses a sqlite database.
This is the code I use to copy the database from the installer to the users application directory:
var dataFile:File = File.applicationDirectory.resolvePath("data/myDataStorage.db");
var dataUserFile:File = File.documentsDirectory.resolvePath("myDataStorage.db");
When using the database I access it here:
var file:File = File.documentsDirectory.resolvePath("myDataStorage.db");
This works great on a mac. On a PC it does not work. Can anyone recommend a resource or give me a tip or two?
Thanks