2 ms·
Files have types though: .txt, .jpg, .bin, etc.
by usernamed7 2y ago
Files have types though: .txt, .jpg, .bin, etc.
- whilenot-dev 2y agoThe filename suffix isn't much more than part of the filename (a simple variable name in that analogy) - it's more convention than constraint. Nobody is stopping you from giving your file the name you want (and the OS allows). You'd use literal magic[0] to assume an actual type. "Everything is a file" rather refers to the fact that every resource in UNIX(-like) operating systems is accessible through a file descriptor: devices, processes, everything, even files =) [0]: https://www.man7.org/linux/man-pages/man4/magic.4.html https://www.man7.org/linux/man-pages/man4/magic.4.html
- mdaniel 2y agoAnd the good(sic) thing about conventions: so many to choose from! .htm .html .HTML .jpeg