Bundling dat file along with the app


#1

Hi,
I found out using getSpecialLocation, I could get to point out various choices of the directories. If I wished to use either userDocumentsDirectory or applicationDataDirectory, as the destination folder to find my .dat file, how can I save this file in those locations during installation of the app just same as bundling resources with the app.

Thanks in advance.

Regards
Mustafa


#2

You could use the Juce BinaryBuilder to embed the .dat file directly into your program


#3

The introjucer can also embed the file in your executable, which is always a better option, IMHO - there are many ways a data file can get lost or broken.


#4

Just to clarify your statement - you are saying that given a choice of an external data file versus embedding the file in the executable, it is preferred to embed the file. I agree, having a handful of loose files scattered around the .exe for an install is lame.