tags:

views:

95

answers:

1

It is possible to move a .sqllite file somewhere while not corrupting it in C or C++? Somewhere could be another folder or something.

If so could you give me some tips/pointers.

+1  A: 

Yes, of course. It is a regular file that can be moved around just like any other file.

The sqlite engine itself will make sure that it does not corrupt. Either it is in a clean state, or locked when being written to (with journaling).

One thing to remember that you should not use the database file on filesystems that do not have reliable locking, e.g. on network disks.

laalto