[fpc-pascal] Including binary data making easy
Jonas Maebe
jonas.maebe at elis.ugent.be
Mon Mar 23 15:51:24 CET 2009
Rainer Stratmann wrote on ma, 23 mrt 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
FPC includes a data2inc utility that you can use for this.
Jonas
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
More information about the fpc-pascal
mailing list