[sqlite] how to check the file is a sqlite database file?
Hello All, Is there any way to know whether a certain file is sqlite database file or not? I am using sqlite 2.8.16. My requirement is , I give user an option to select a file as a sqlite database file, so if user makes a mistake in selecting a proper sqlite database file,I want to prevent the
Re: [sqlite] how to check the file is a sqlite database file?
Read the first 31 bytes of the file (or the first 15 bytes in V3). Regards