On Thu, 17 Aug 1995 19:33:31 +0100 (BST), R J Partington said:
> WRT filetypes: can we have `proper' filetypes, where there's a magic
> number in the file (or some other thing) rather than relying on
> filetypes? A file should have to called *.jpg (eg) to be a jpeg etc.

(I assume you meant there to be a 'not' in there?)

Anyway, this has always been the case on the Sam and other sensible systems.
I often call bits of code "*.bin" even though I don't have to.

What the filetype bit of the name is actually for is to give a hint as to
what's in the file.  If it's called abc.jpg then it's likely to be a JPEG
picture, although it would still work if it were called zyx.bas.  Some
filetypes contain more hints than others.  For example, if you want to
compile a C program you should call it foo.c or else the compiler won't
know it is a C program.  Anyway that's enough random waffle...

imc

Reply via email to