This is all in the help pages under "input" and "memblock" you've just got to mix them together...
open to read <File Num>,<FileName.xxx>
open to write <File Num2>,<FileName.pak>
make memblock from file <File Num>,<Memblock Num> (memblock must be identical size (in bytes) as the file)
write memblock <File Num2>,<Memblock Num>
basic compressed file - Don't expect things like quake to be able to read it though...
if a quake style pak is what you're after try the Swat 3 way - make a standard zip and rename the extension to .res (or in this .pak)
for writing other things into pak files, look at the memblock section of the help page...
make memblock from... (whatever you're trying to convert into a memblock)
then
write memblock (as above)
to take the things out again
read memblock (same order as write memblock)
make ... (whatever) from memblock
unfortunately you can't make a file from a memblock. You've got to read an individual byte from a memblock then write that byte into your new file, I haven't found a more effective way of doing that yet...
hope this helps in some way...
...maybe one day I'll finish a project
