require “sqlite3”
local path = system.pathForFile(“data.db”, system.DocumentsDirectory)
db = sqlite3.open( path )
–OK,above codes can create the data.db if the file doesn’t exist
–but ,follow codes can’t create the data.db if the file doesn’t exist, why?
local path = system.pathForFile(“data.db”, system.ResourceDirectory)
db = sqlite3.open( path ) [import]uid: 29364 topic_id: 9290 reply_id: 309290[/import]