3
j0n4s
7y

Does any one know how Containers (?) like Zip or exe files work? I mean when you open it with a texteditor you can't see much?!

Comments
  • 8
    I hope you are kidding...
  • 0
  • 5
    Because they are not supposed to be opened in text editor.
  • 0
    @rostopira I don't want to know how to open it... I wan't to know how 7zip or something like this understands what in the file is..
  • 3
    @nobes just google it, why asking such basic question here?
  • 0
    @Aitkotw I know that but how does 7zip or something like this know how to parse it?
  • 3
    First of all, they are called archives. Secondly, like @rostopira already said...
  • 2
    @nobes how does browsers know how to process HTML document? There's specific set of instructions present in those software how to do that. That's why you can't run word file in notepad.
  • 0
    @Aitkotw Yeah but html is readable.. And i want to know how the set of constructions looks like
  • 8
    @nobes Well, look: The extention (like .zip) is there to differentiate file types, just like the names of real languages. WinRar for example knows how to interpret various compression formats and what to do with them, because it "knows" how they are organized. Somehow this is like asking "How do japanese people know how to read japanese? I can't make sense of it, even if I look at it."
  • 0
    @sha256f Yeah but i want to learn the Zipfile Japanase
  • 5
    @nobes if you really want that, check this out, source of 7zip. It's written in c++. I guess you can figure out the rest.

    https://sourceforge.net/projects/...
  • 0
    @Aitkotw thats what i need thanks
  • 0
    @MonsieurMan You're right...if devRant was a school. But it isn't. I thought this was a place for professional devs who know our shit to rant about stuff that is annoying because it's genuinely poor. Instead, devrant has become a place for novice students to spam the community with basic questions about basic stuff that's already been answered, because they are too lazy to look it up, let alone to figure it out on their own. Now that is a behaviour that I judge negative.
  • 0
    @MonsieurMan P.S. About the suffering, no pain no gain. Give a dev student an answer to a basic question and you'll get him through the day. Teach him to suffer a bit and you'll get him through school :)
Add Comment