结构化文件存储? [英] Structured file storage?

查看:59
本文介绍了结构化文件存储?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

几年前,在DOS时代,微软拥有创建结构化文件存储的技术.它允许开发人员创建一个单独的编译文件,其中包含类似于MS-DOS的数据层次结构,并带有文件夹和节点.我在回头炉上有一些项目,在这种项目中这种单一文件组织将很有用,我想知道该技术(或类似技术)是否仍然存在并在.Net中可用.

我已经考虑过使用XML,但是由于两个原因,这是不合适的.首先,要存储的数据可能很大并且是二进制的,这可能会使XML编码变得笨拙.其次,我喜欢一种经过编译,压缩和优化的格式,这种格式可以防止人们直接更改文件本身.

有什么建议,或者我应该计划滚动自己的文件结构?

Some years ago, back in the DOS days, Microsoft had a technology for creating structured file storage. It allowed a developer to create a single, compiled file that contained a data hierarcy similar to MS-DOS, with folders and nodes. I have a few projects on the back burner where that kind of single file organization would be useful and I''m wondering if that technology (or something similar) still exists and is useable within .Net.

I have thought of using XML, but that is unsuitable for two reasons. First, the data to be stored is potentially large and binary, which could make XML encoding awkward. Second, I like the idea of a compiled, compressed and optimized format, which would prevent people from directly altering the file itself.

Any suggestions, or should I plan on rolling my own file structure?

推荐答案

这不是OLE文件体系结构吗? http://en.wikipedia.org/wiki/Object_Linking_and_Embedding [
Whasn''t this the OLE file architecture? http://en.wikipedia.org/wiki/Object_Linking_and_Embedding[^]
I think it''s still supported.


ZIP怎么样-带有密码和您自己的扩展名,它将阻止简单但好奇的问题.支持文件和文件夹,压缩等.
How about ZIP - with a password and your own extension that would stop the simple-but-curious. Supports files and folders, compresses, etc.


这篇关于结构化文件存储?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆