On 4 Sep 2017, at 3:46pm, Phoenix <rwm.phoe...@btinternet.com> wrote:

> Is there anyway to confirm the file I am about to open, via
> sqlite3_open, is in fact an SQLite Database?

Read the file header from it using fopen()/fread()/fclose() (i.e. not the 
SQLite library).  The file will start with "SQLite format 3" followed by a x00 
byte.

Simon.
_______________________________________________
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to