| 发表于:2007-01-17 23:32:361楼 得分:0 |
try.. stream stream=new filestream(file); binaryreader br=new binaryreader(stream); filehead fh=new filehead(); fh.a=br.readchars(20); fh.b=br.readchars(40); fh.c=br.readint32(); fh.d=br.readint32(); //结构体定义如下 stuct filehead { public char[] a; public char[] b public int c; public int d }filehead; | | |
|