3
3368aa
Unregistered / Unconfirmed
GUEST, unregistred user!
请看
type
tsetdata=record
date:Tdatetime;
str:string[30];
play:string[60];
end;
var
Form1: TForm1;
mydata:file of tsetdata;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
var
dat:tsetdata;
begin
dat.date:=now;
dat.str:='123456';
dat.play:='';
assignfile(mydata,'h:/me.dat');
try
if fileEXists('h:/me.dat')=false then rewrite(mydata);
write(mydata,dat);
finally
closefile(mydata);
end;
end;
为什么会出现 ‘I/O error 103’??
水平不高,请尽量给出源码?
type
tsetdata=record
date:Tdatetime;
str:string[30];
play:string[60];
end;
var
Form1: TForm1;
mydata:file of tsetdata;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
var
dat:tsetdata;
begin
dat.date:=now;
dat.str:='123456';
dat.play:='';
assignfile(mydata,'h:/me.dat');
try
if fileEXists('h:/me.dat')=false then rewrite(mydata);
write(mydata,dat);
finally
closefile(mydata);
end;
end;
为什么会出现 ‘I/O error 103’??
水平不高,请尽量给出源码?