about sqlite3: file doesn't exist

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]

system.ResourceDirectory is for files that ship with your app. Check: http://developer.anscamobile.com/reference/index/system/systemresourcedirectory [import]uid: 37036 topic_id: 9290 reply_id: 33932[/import]

thanks , i known [import]uid: 29364 topic_id: 9290 reply_id: 34064[/import]