this post was submitted on 04 Jun 2026
0 points (50.0% liked)

Casual UK

4638 readers
8 users here now

Casual UK

A casual place for banter and anything that doesn't fit in anywhere else.

Have chat and a natter. Talk about anything and everything that's not political!

Keep it casual.

Rules

Other communities:

Here:

Elsewhere:

founded 3 years ago
MODERATORS
 

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.

top 6 comments
sorted by: hot top controversial new old
[–] anothermember@feddit.uk 12 points 6 days ago

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

[–] ohulancutash@feddit.uk 4 points 5 days ago* (last edited 5 days ago) (1 children)

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.

[–] gnufuu@infosec.pub 0 points 4 days ago* (last edited 4 days ago)

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

[–] lIlIlIlIlIlIl@lemmy.world 4 points 6 days ago

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.

[–] vext01@feddit.uk 2 points 5 days ago

There's all kinds of files.

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

[–] mannycalavera@feddit.uk 1 points 5 days ago

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