System.Windows.Forms.RichTextBoxStreamType zeichensatz = System.Windows.Forms.RichTextBoxStreamType.PlainText;
using (System.IO.BinaryReader testobunicode = new System.IO.BinaryReader(System.IO.File.Open(TempPfad + Dateiname, System.IO.FileMode.Open)))
{
if (testobunicode.ReadByte() == 0xFF)
zeichensatz = System.Windows.Forms.RichTextBoxStreamType.UnicodePlainText;
}