Hi,
Can anyone help me in the foll. issue:
I need to read data in local variables from a binary file generated sequentially in linux. It is very much difficult for me to read the int's, float's and double values from the binary file. As they generate separate outputs when read as stream and read as sequential.
What I have tried so far:
I have tried BinaryFormatter to convert the binary file to readable stream, but it throws an exception of "The input stream is not a valid binary format. The starting contents (in bytes) are: 26-41-6B-73-68-61-79-20-20-20-20-20-20-20-20-20-20 ..."
I even tried BinaryReader, but only able to read strings/chars, but the numbers come different and have no relation the type declared.
The StreamReader is no good in this case.. This is my assumption as StreamReader will read a stream and not sequentially as I want.
Please help.. Thanks