How can I know the file content type in c? I mean its text type or any other type?
Check out libmagic.