hi,
i am trying to convert the binary file to a text file by using memory stream.but i cant get the correct result.can anyone help me how can i perform this.
Thanks
By using memory stream how can i convert the binary file to a text file
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Feb 25, 2011, 2:59 AM EST
Just try this.
StreamReader sr = new StreamReader(binaryfileStream);
MessageBox.Show(sr.ReadToEnd());
Suthish NairRank #92 · 22.8K reputationPosted Feb 25, 2011, 3:04 AM EST
It depends upon the binary file format. Which file format you want to convert to .txt?
Felipe RamosRank #1,409 · 1.2K reputationPosted Feb 25, 2011, 3:13 AM EST
BinaryReader binaryReader = new BinaryReader(you stream object);
binaryReader.ReadString();
http://msdn.microsoft.com/es-es/library/system.io.binaryreader.aspx
Suthish NairRank #92 · 22.8K reputationPosted Feb 27, 2011, 7:58 AM EST