0
7

There are basically 4 types of files : text, image, audio and audio visual, right ?

13d 9h ago by feddit.online/u/MastKalandar in casualuk@feddit.uk

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.

There are two: text files which are human readable when opened in a text editor, and binary files which aren't.

2 types. Text and binary files. Images, sounds, compiled programs, videos are all binary files. Some word processors save their work in binary files.

Text files can follow all sorts of syntaxes. Plaintext, HTML, JSON and so on.

To be pedantic, plaintext files are binary files too, they merely exclude non-printable bytes.

There are also “blobs,” or simply “other” files which are intended to be machine-readable. But that’s getting down into the weeds a bit.

.txt and .docx are both text - the latter just has additional text that’s intended for the program to help display said text in various ways.

There's all kinds of files.

Executable programs, libraries, disk images, compressed archives, symbolic links, device nodes, pipes, the list goes on.

I was having this exact same conversation down the pub the other day...

.docx is a nasty MS invention because for whatever reason they though they could do better than the ODF which already has standard globally agreed upon document standards.