Assuming you have an open file already:
char a, b, c;
if (a == (char)0xEF && b==(char)0xBB && c==(char)0xBF)
Do your next move (like Read or ResdString or of the sort).
Of course you can always translate the code above to whatever way of using files suites you.
Maybe a little dirty, but works for me.