阅读背景:

读取混合(即文本和二进制)数据的最佳方法是什么?

来源:互联网 

I need to be able to read a file format that mixes binary and non-binary data. Assuming I know the input is good, what's the best way to do this? As an example, let's take a file that has a double as the first line, a newline (0x0D 0x0A) and then ten bytes of binary data afterward. I could, of course, calculate the position of the newline, then make a BinaryReader and seek to that position, but I keep thinking that there has to be a better way.I need to be able to read a file format that mi




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: