[fpc-pascal] Including binary data making easy
Rainer Stratmann
RainerStratmann at t-online.de
Mon Mar 23 15:37:47 CET 2009
Would this be possible?
// get access to the data of file.dat
// have 1 executable file with containing all the data
{$ir file.dat mydata} // include resource or similar
// fpc compiler makes this
const
mydata : array[ 0 .. 4 ] of byte =
($45,$44,$63,$76,$55); // file data
// the length can find out with sizeof( mydata );
Rainer
More information about the fpc-pascal
mailing list