我在一个文件里存储了 两个不同结构体类型的变量
Type type1
....
End Type
Type type2
....
End Type2
dim msg1 as type1
dim msg2 as type2
open ..........for Binary as #1
put #1,,msg1
put #1,,msg2
如果我用seek定位到某一个结构体,由于两个结构体的大小不一样,这样就会错位,请问,如何解决
...全文
262打赏收藏
文件定位到某一结构体
我在一个文件里存储了 两个不同结构体类型的变量 Type type1 .... End Type Type type2 .... End Type2 dim msg1 as type1 dim msg2 as type2 open ..........for Binary as #1 put #1,,msg1 put #1,,msg2 如果我用seek定位到某一个结构体,由于两个结构体的大小不一样,这样就会错位,请问,如何解决