In C# how can you find the mime type of a file based on the file signature
stackoverflow.com
stackoverflow.com
If tasked with this, my first reaction would be to look at the sources of the Unix `file` command, and find out a way to rip out the guts of its main function so to wrap it as a library. Then write an FFI for the one function and call it from $FAV_LANG. But only because I don't do shell pipes.