|
-
March 23rd, 2004, 09:24 PM
#1
how to read a struct block from a file?
there is a Binary stream file from A/D ,its format is fixed by known struct ,like this:
{
int i1;
short i2;
float i3;
char[] i4; //size of array is 24
int i5;
...
int in;
}
i can read it with a struct p in c++ like this:
file.Read(&p,size(p);
you know, in c# ,it may be read with class Serialization method, but it will produce an error."...mscorlib.dll error...BinaryFormatter version incompatible...."
how can i read this struct in c#?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|