John Stanton <[EMAIL PROTECTED]> wrote: > Unix has an API call which establishes > file existance efficiently. On Windows I recall that I had to open it. >
SQLite contains the sqlite3OsFileExists(const char *zFilename) function that is cross-platform. Since this function does not begin with "sqlite3_", you know that it is not a supported API and that it is subject to change without notice. If you use it and it breaks with a subsequent release of SQLite - no tears. But on the other hand, that particular function has been around and has been unchanged for time out of mind, so you might be able to get away with using it. If nothing else, you could use it as a template for your own implementation. -- D. Richard Hipp <[EMAIL PROTECTED]> ----------------------------------------------------------------------------- To unsubscribe, send email to [EMAIL PROTECTED] -----------------------------------------------------------------------------