Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » Sqlite3 database
Re: Sqlite3 database [message #40082 is a reply to message #40081] Fri, 07 June 2013 21:32 Go to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1791
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

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 Wink 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 Wink

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

 
Read Message
Read Message
Previous Topic: Linking error again
Next Topic: Program loses hover focus
Goto Forum:
  


Current Time: Thu May 01 14:36:55 CEST 2025

Total time taken to generate the page: 0.03203 seconds