Hello, world!\n

> "Arbitrary text" has a MIME type and associated file extension;

No, it does not. People use lots of different extensions for plain
text files and also often no extension at all (e.g., "README"
or "COPYING").

Using libmagic to detect the MIME type sounds reasonable, but inferring
anything from the file's extension (or lack thereof) sounds not.

                                Have a nice fortnight
-- 
Martin `MJ' Mares                          <m...@ucw.cz>   http://mj.ucw.cz/
Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
"A semicolon. Another line ends in the dance of camel." -- Kabir Ahuja

Reply via email to