N newfood123 Unregistered / Unconfirmed GUEST, unregistred user! 2008-01-31 #1 各位,有没有人写过读写*.DAT文件的朋友??应该怎么写,能不能帮我一把,小弟在此先谢谢了.最好有DEMO
F firstrose Unregistered / Unconfirmed GUEST, unregistred user! 2008-02-03 #2 Var fso:TFileStream; buf:Array[1..8192] of Byte; buflen:LongWord; buflen:=SizeOf(buf); fso:=TFileStream.Create('1.dat',fmOpenReadWrite); fso.Read(buf,buflen);//读 fso.Write(buf,buflen);//写 fso.Free;
Var fso:TFileStream; buf:Array[1..8192] of Byte; buflen:LongWord; buflen:=SizeOf(buf); fso:=TFileStream.Create('1.dat',fmOpenReadWrite); fso.Read(buf,buflen);//读 fso.Write(buf,buflen);//写 fso.Free;