Re: Big file ...

new topic     » goto parent     » topic index » view thread      » older message » newer message

Stefan Meyer wrote:
> Assume, I have written an .ex program with some picturefiles, sounds etc.
> How can I put all that stuff into ONE .exe file?

You could make a program to add all that data directly in a .e file and
include it in your program, then bind it, and there you have one big
File. Althrough, the program has to fit in memory and the will need more
HD-space cause you just can't say --> data = "DJSRIOERERRE" <-- You have
to cut it after 256 bytes ( a line longer than that will cause an error)
and you have to replace any escape codes with this method. So every 250
bytes you'll at least 3 extra bytes, and you need bytes to replace the
escape codes.

Rule is: Don't
Best alternative for easy packing is: put all your data in one file and
your program in another (like perhaps Lion King does).
You can put it all in one file by yourself. You can use Daniel
Berstein's compression routines or you can use EDOM (althrough it is
even slower than the compression routines and will generate a file which
is a bit longer, it does load and save easy). With edom you can just put
all the data of the files in one sequence and then call "edo_save
("data.dat", my_sequence}"
        Then your data will be compressed in the file (but with the total
sequence structure in tact.)
        If you think it is too slow, wait for EdoM 2.
        You can BTW if you know the file sizes, copy all the files to one using
the dos-command: "copy file1+file2+file3+file4 data.dat"
        Then simply open data.dat, (you only have to know the filesizes of each
file)

Hope this helps..

Ralf Nieuwenhuijsen
nieuwen at xs4all.nl

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu