The problem is that they *ARE* all ASCII text files. The filesystem doesn't know the difference between C code, C++, Perl, Pascal, Fortran, or Java source for that matter.
Why not take the 'extensions' (what follows the last .) as good (at least preliminary) guides to the content types? You'd probably catch most of them that way. The problem is that recognizing which programming language a file is source code for is a tremendously difficult task; you'll probably have to rely on a human to figure it out reliably.
Philosophy can be made out of anything. Or less -- Jerry A. Fodor
In reply to Re: file type
by arturo
in thread file type
by ashok
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |