P
Pohihihi
Hello NG,
I am making a small tool which reads files on harddisk and saves many
information about files in a db. Now, while reading information from the
file I want to figure out what type, ASCII or BINary, it is while reading. I
can look for ext but there are millions of them and not very reliable. Also,
there could be a embedded binary information in the file (e.g. pdf) that
might make that file a mixed type.
I want to know if there is a way, maybe some kind of signature, to find what
kind of file is it in C# (or any other language that can be used with cs).
I am making a small tool which reads files on harddisk and saves many
information about files in a db. Now, while reading information from the
file I want to figure out what type, ASCII or BINary, it is while reading. I
can look for ext but there are millions of them and not very reliable. Also,
there could be a embedded binary information in the file (e.g. pdf) that
might make that file a mixed type.
I want to know if there is a way, maybe some kind of signature, to find what
kind of file is it in C# (or any other language that can be used with cs).