Embed text file into C++ source code?

Monkey Forums/Monkey Programming/Embed text file into C++ source code?

slenkar(Posted 2011) [#1]
how do you embed text files into C++ source code?

Im trying to use angelfont renderer with Nintendo DS which needs font info exactly formatted.


Canardian(Posted 2011) [#2]
You can only include C/C++ code into C++ source code. Some 3D modellers export models as C++ source code also. They can be like ASCII or binary data. For binary data you just import a C source code with some array definition using the "unsigned char data1[]={1,2,3,...};" tags.