Re: format for data storage?



* js5895:
> I need to store a lot of data(mostly text files) into a single file.
> I programmed a interface that is a hierarchical tree (shown below)
> What format should I store the data so I can access it through the
> interface, maybe ZIP, a Database, or other. I looked at B-trees,
> BTW, my file system is NTFS.

NTFS/Windows has not just one but two ways of doing what you want.

The lowest-level way is additional data streams in a file, but this does not
directly support hierarchical storage; a hierarchy can however be simulated
easily by naming conventions for streams, and in other ways.

The not-so-low-level way is OLE Structured Storage (a.k.a. Active Structured
Storage), which does directly support hierarchies of "files within files",
and is built on top of whatever facilities the relevant file system offers,
which for NTFS means it uses additional data streams in the file.

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
.



Relevant Pages

  • Re: The animal, not the environment, controls behavior.
    ... "HTMs are organized as a tree-shaped hierarchy of nodes, ... Paraphrasing this as "associations in the environment" just ... That means "internally" in the HTM model. ... Now the only way I could do it was to "store" the ...
    (comp.ai.philosophy)
  • Re: The animal, not the environment, controls behavior.
    ... "HTMs are organized as a tree-shaped hierarchy of nodes, ... internal associations would reflect the environements ... Now the only way I could do it was to "store" the ...
    (comp.ai.philosophy)
  • Re: help on Indexing contents in file
    ... suggested in my previous post, because here you are introducing a hierarchy, ... Using an XML parser for read/write your *hierarchical* data could be easier ... to store just Item name and Rank. ... And you can define a Category class to store items of that category. ...
    (microsoft.public.vc.mfc)
  • Re: Public folder store not being stamped with smtp by RUS
    ... No, the public stores email each other the hierarchy information, which is ... done before any replication is set up. ... If one store doesn't have an SMTP ...
    (microsoft.public.exchange2000.admin)
  • Re: [patch 0/8] Nesting class_device patches that actually work
    ... you give one of your "subclass devices" an interface, ... Take a step back and look what a kernel interface is about. ... device tree by following the "device" symlink from sysfs to get a unified tree ... the hierarchy is not a reason not to be able to walk up the chain and change ...
    (Linux-Kernel)