kate2006 <ka**********@yahoo.co.uk> wrote:
I am trying to read a file written in binary format !!!
*What* binary format though? Saying that the file is written in "binary
format" is like saying that a book is written in "a language".
through this
code i can execute hex coding of file and convert it in binary ..but i
found out that the file contain signed character(128), how can i come
up with signed value...
Firstly, don't confuse characters with bytes. If this is a binary file,
characters shouldn't come into it.
It would really help if you'd give us a short but *complete* example
program that demonstrates the problem, along with a sample of the data
and what you'd expect to get back.
As I said before, read
http://www.pobox.com/~skeet/csharp/complete.html
Your current code is reading a byte at a time, but we've no idea what
you *want* to be reading, or how that data is formatted.
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog:
http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too