!
!雅龙
Unregistered / Unconfirmed
GUEST, unregistred user!
///写入
procedure TForm1.Button1Click(Sender: TObject);
var
F:TFileStream;
hhh:Array of integer;
begin
SetLength(hhh,2);
hhh[1]:=9;
F:=TFileStream.Create('d:/abc.txt', fmCreate);
F.Write(hhh,8);
F.Free;
showmessage(inttostr(hhh[1]));
end;
///读出
procedure TForm1.Button2Click(Sender: TObject);
var
F:TFileStream;
ttt:Array of integer;
begin
SetLength(ttt,2);
F:=TFileStream.Create('d:/abc.txt', fmOpenRead);
F.Read(ttt,8);
F.Free;
// SetLength(ttt,2);
showmessage(inttostr(ttt[1]));
end;
procedure TForm1.Button1Click(Sender: TObject);
var
F:TFileStream;
hhh:Array of integer;
begin
SetLength(hhh,2);
hhh[1]:=9;
F:=TFileStream.Create('d:/abc.txt', fmCreate);
F.Write(hhh,8);
F.Free;
showmessage(inttostr(hhh[1]));
end;
///读出
procedure TForm1.Button2Click(Sender: TObject);
var
F:TFileStream;
ttt:Array of integer;
begin
SetLength(ttt,2);
F:=TFileStream.Create('d:/abc.txt', fmOpenRead);
F.Read(ttt,8);
F.Free;
// SetLength(ttt,2);
showmessage(inttostr(ttt[1]));
end;