string strFileName = @"E:\Program Files\Common Files\Borland Shared\BDE\IDAPI32.CFG"; using (FileStream myFstr = new FileStream(strFileName, FileMode.Open)) { using (StreamReader myStrRdr = new StreamReader(myFstr)) { Console.WriteLine(myStrRdr.ReadLine()); Console.WriteLine(); myFstr.Position = 0; using (BinaryReader myBrdr = new BinaryReader(myFstr)) { string strstring = myBrdr.ReadString(); Console.WriteLine(strstring); Console.ReadKey(); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)