

So, saving a file without extension is the beggining of troubles. The format of a file is defined by its content since a file is solely a container for data, although on some platforms the format is usually indicated by its filename extension, specifying the rules for how the bytes must be organized and interpreted meaningfully. : On most modern operating systems, files are organized into one-dimensional arrays of bytes. Id speculate that your problem is actually that you have file extension hidden in your file viewer… If DebugBuild then // for the debugger the file is on desktopĭbFile = (“MesHorairesPrefsWin01.db”)Įlse // for the running program the file has to be put in the application folderĭbFile = (“MesHorairesPrefsWin.db”)Īpp.MyPrefsDB = new MyDatabaseClass // MydatabaseClass is a Sqlite databaseĮlse // it doesn My Database was created with Navicat for Sqlite and not by my application. I don’t know why is that happening but stripping the sqlite extension did the job for me. db at the end … example if my filename of the DB was “MesHorairesPrefsWin.sqlite”, when you take a look at the properties the name is changed to “”. I’ve done that because I remarked on the properties of my original file the name was containing the extension. sqlite extension leaving the name of the file on the computer without an extension and adding the extension. I had the same problem and I fixed it by stripping the.