Hi,
just do an sqlite3_open() on a non-existing file. See
http://www.sqlite.org/capi3ref.html#sqlite3_open
Martin
Marco Bambini schrieb:
What is the best way to create an empty sqlite3 database?
I mean without tables and rows inside it.
The problem is that if I create a 0 length file, when I try to open
it with sqlite3_open I get the error "file is encrypted or is not a
database".
Maybe a possible solution could be to manually write the SQLITE3
header into the file, but is it safe?
Thanks,
Marco Bambini