Hi, I try to read and write db file use this method
local path = system.pathForFile( “paul.db”, system.DocumentsDirectory )
local path2 = system.pathForFile( “test.db”, system.DocumentsDirectory )
local fh = io.open( path, “r” )
local contents = fh:read( “*a” )
fhs = io.open( path2, “w” )
fhs:write(contents)
io.close( fhs )
io.close(fh)
contents = nil
I can get the structure of database, however the record is not copied into another database.
Does anyone know why ? [import]uid: 159661 topic_id: 31960 reply_id: 331960[/import]