But .txt is not the same as .rs; yet .txt is not the same as .docx, although both of these files look the same to the human eye.

  • it_depends_man@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    13 hours ago

    Not really.

    For practical purposes, all files “binary”, ones and zeros. And with those ones and zeros, you can encode stuff for example text and for example with ascii https://en.wikipedia.org/wiki/ASCII But you can also encode programs that can be executed, or what you named, visual, audio, or whatever you want. The differences are the “encodings”.

    Sometimes, things work a bit like one of those Russian Matryoshka dolls, for example a PDF can contain a JPG or a PNG but also TXT.

    It’s really not that simple as there being “4” types.

    I’m not sure that answers your question though.