Read data into structs?
I would like to use the System.IO class to read binary data directly into some c# structs. But I dont see a way to do it. All the readers that I know of ( BinaryReader, StreamReader) want a byte[] or char[] as the target buffer. I dont see a way to cast my struct into a byte[] so I can use these read methods.
Does anyone have a solution for this?
Thanks in advance.
bilnaadPosted Dec 7, 2004, 1:40 PM
bilnaadPosted Dec 6, 2004, 6:27 AM
bilnaadPosted Dec 6, 2004, 6:17 AM
frannyPosted Dec 5, 2004, 9:36 PM