制作我自己的Zip文件类型 [英] Making My Own Type of Zip File

查看:84
本文介绍了制作我自己的Zip文件类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿伙计们,



我一直在制作编程语言,你可能从之前的问题中知道,我已经开始制作一些非常高级的编程语言。我想知道我是否可以制作自己的拉链文件。我想能够得到三个.txt文件让我们说并制作一个程序,将它们压缩成一个文件。还有另一个程序,我能够按名称访问每个单独的文件的数据。我想创建一个类似于java的编程语言,并一直在考虑它。如果我使每个不同的文件成为一个类,并且该文件的名称是类名,那么我可以轻松查看每个单独的文件及其数据。但如果我这样做,那么我会喜欢5个文件,如果我要使用zip文件,那么这意味着我必须得到另一个库或者让我访问zip文件内容的东西。 />


i确实知道我自己进入了什么并且我明白这段代码可能非常复杂,但请不要告诉我,我已经知道了。所以,如果您对如何做到这一点有所了解,那么请您放下一些示例代码并解释一下吗?



谢谢

hey guys,

i have been making programming languages for a while as you might know from previous questions and i have started to make some pretty advanced programming languages. i was wondering if it is possible for me to make my own ''zip'' file. i want to be able to get maybe three .txt files lets say and make a program that compresses them into one file. also with another program, i am able to access the data of each individual file by name. i want to create a programming language similar to java and have been thinking about it. if i make every different file a class and the name of the file being the class name, then i am able to easily look at each individual file and it''s data. but if i were to do this, then i would have like 5 files and if i were to use a zip file, then it means that i would have to get another library or something that lets me access the contents of zip files.

i do know what i am getting myself into and i do understand that this code can be very complex, but please don''t tell me that, i already know. so if you do have an idea of how to do this, then can you please put down some sample code and explain it?

thanks

推荐答案

如果从这里开始,您将找到更多足够的代码示例: http:// en。 wikipedia.org/wiki/Data_compression [ ^ ]。



想看到真正成功的代码吗?请参阅:

http://en.wikipedia.org/wiki/7-Zip [ ^ ],

http://www.7-zip.org/ [ ^ ]。



开放代码,顺便说一下,还有很多7zip网站上的有用信息。



祝你好运,

-SA
You will find more then enough code samples if you start from here: http://en.wikipedia.org/wiki/Data_compression[^].

Want to see really successful code? Please see:
http://en.wikipedia.org/wiki/7-Zip[^],
http://www.7-zip.org/[^].

Open code, by the way, and a lot of useful information on the 7zip Web site.

Good luck,
—SA


这篇关于制作我自己的Zip文件类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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