In mac OS X I can get charset and mimetype of file with this command
file -I /Users/bbb/Desktop/ba.py
And this command return this result
text/x-java; charset=us-ascii
Now I want get this mime type and charset in objective c without using NSTask or System() .
How I can get this info?