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
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Suthish NairPosted Feb 27, 2011, 12:58 PM
Felipe RamosPosted Feb 25, 2011, 8:13 AM
BinaryReader binaryReader = new BinaryReader(you stream object);
binaryReader.ReadString();
http://msdn.microsoft.com/es-es/library/system.io.binaryreader.aspx
Suthish NairPosted Feb 25, 2011, 8:04 AM
It depends upon the binary file format. Which file format you want to convert to .txt?
Jaganathan BantheswaranPosted Feb 25, 2011, 7:59 AM
Just try this.
StreamReader sr = new StreamReader(binaryfileStream);
MessageBox.Show(sr.ReadToEnd());