On Wed, Feb 1, 2012 at 1:37 PM, bhaskarReddy <uni...@gmail.com> wrote: > > Hi Friends, > > Is there any File checking mechanism in sqilte3. > > Suppose i have a file ABCD.db, before i want to create the data > base file, i want to check whether it is already exit with the same or not. > If it is exist returns an error. > > Is there any sqlite function to do file checking mechanism. > > > Regards, > Bhaskar Reddy
Just do a stat(2) on the file. (see man 2 stat) -- Abhinav _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users