Home » Community » Newbie corner » Sqlite3 database
Re: Sqlite3 database [message #40082 is a reply to message #40081] |
Fri, 07 June 2013 21:32  |
|
Hi Matteo,
Maybe I missed something in your question, but if you just need to move files somewhere else, why not use the functions from Core that do just that. Simple call one of those before you call db.Open():bool FileCopy(const char *oldpath, const char *newpath);
bool FileMove(const char *oldpath, const char *newpath);
Also, I see your code checks if the file exists by reading it all in memory. That is not very efficient There are functions for this too:int64 GetFileLength(const char *path);
bool FileExists(const char *path);
bool DirectoryExists(const char *path);
Have a look in Core/Path.h or in the relevant documentation 
If I misunderstood the problem, please try to specify what exactly is the problem...
Best regards,
Honza
[Updated on: Fri, 07 June 2013 21:33] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Thu May 01 14:36:55 CEST 2025
Total time taken to generate the page: 0.03203 seconds
|