Was detecting a file stream if it was Unicode encoded or not, so though I would share the code.
Let say you an xml file that you need to detect if it has the Unicode BOM in the file.
If you wish to know more about BOM look it up at wikipedia
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
//open the helloworld.xml file Stream fs = new FileStream |

