如题,比如我的格式为
public type mytype
myid as string
name as string
zwd as string
gxx as string
zll as string
zdd as string
zdata as date
end type 如何把这样的数据保存在一个文件 cc.dat里面呢?而且后面的新数据要直接可以添加进去,不是所有数据重写。
另外保存好以后如何读取指定 日期(就是里面的zdata了,因为每天都要写入数据)的数据呢帮忙给个例子阿。谢谢了
public type mytype
myid as string
name as string
zwd as string
gxx as string
zll as string
zdd as string
zdata as date
end type 如何把这样的数据保存在一个文件 cc.dat里面呢?而且后面的新数据要直接可以添加进去,不是所有数据重写。
另外保存好以后如何读取指定 日期(就是里面的zdata了,因为每天都要写入数据)的数据呢帮忙给个例子阿。谢谢了
open <文件名> [for random] as <文件号>len=<记录长度>
写数据:put # 语句
put # <文件号>,[<记录号>],<变量名>
读数据:get # 语句
get # <文件号>,[<记录号>],<变量名>具体的请楼主自行查找一下相关资料。
http://download.csdn.net/source/137610
以下连接有结构体数据的读写删除等代码实例:
http://zhidao.baidu.com/question/42391351.htmlhttp://zhidao.baidu.com/question/42391753.html