views:

143

answers:

3

Hi!

Is there a Delphi-5 solution to easily integrate single-file storage into existing code? I would like to have files like Java *.jar or Openoffice document files which are zipped/compressed files and folders but with their own file extension.

Edit: I know some ZIP capable components but in a nutshell I want to access files within the "container" and use normal file handling routines on them (eg. TStringList.SaveToFile). Any overhead about compress/uncompress should be handled by the component.

+1  A: 

Just use the .zip format. You can change the file extension to whatever you want, its the file contents that are important. There are many third-party Zip solutions available for Delphi, both freeware and commercial. Look around (my company uses ZipForge)

Remy Lebeau - TeamB
I am looking for some out-of-the box solution which would be transparent to existing legacy applications since I already know about the different .zip components. In a nutshell I want to have a files within the single-file-storage and use normal file handling routines on them (eg. TStringList.SaveToFile) - I don't want to be bothered with the compress/uncompress by myself.
pastacool
You would have to find a .zip component that supports reading/writing files as TStream objects, and then change your code to use SaveToStream() instead of SaveToFile(). The only way I know to SaveToFile() into a .zip file directly is to first mount the .zip file as a file system folder at the OS level, such as with WinXP's Compressed Folders feature, or a third-party Shell Extension plugin that uses the .zip format internally.
Remy Lebeau - TeamB
+1  A: 

It looks like AidAim Software might have what you need.

thx for the link - will take a look at it
pastacool
although I don't like AidAim it's still a valid answer
pastacool
A: 

SolFS is the answer. Check the link for comparison with AidAim.

Eugene Mayevski 'EldoS Corp