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.

you are viewing a single comment's thread
view the rest of the comments
[–] 22 points 5 months ago (4 children)

There are thousands of types of file. They all contain data as a long sequence of numbers, and how those numbers are interpreted depends on the type of file - text characters, floating point numbers, pixel colour information or compressed data

  • source
  • hideshow 4 child comments
  • [–] [S] 2 points 5 months ago (3 children)

    images are pixel colour information while audio and video are compressed data ?

  • source
  • parent
  • hideshow 3 child comments
  • [–] 5 points 5 months ago

    Depends on the file format. There is compressed and uncompressed audio - some times the numbers just represent the audio waveform (e.g. .wav) - some times with lossy lossless compression. Most, but not all, video formats are compressed due to the data size

  • source
  • parent