N
netbug
Unregistered / Unconfirmed
GUEST, unregistred user!
请看:
procedure TForm1.Button1Click(Sender: TObject);
var ch:char;
f:file;
begin
assignfile(f,'c:/test.aa');
rewrite(f);
ch:='a';
write(f,ord(ch));
ch:='b';
write(f,ord(ch));
closefile(f);
end;
我想把ASCII码一个接着一个地写入一个无类型文件(不换行),但此程序
编译不通过,说是:Illegal type in Write/Writeln statement
请问我该如何更改呢?谢谢.
procedure TForm1.Button1Click(Sender: TObject);
var ch:char;
f:file;
begin
assignfile(f,'c:/test.aa');
rewrite(f);
ch:='a';
write(f,ord(ch));
ch:='b';
write(f,ord(ch));
closefile(f);
end;
我想把ASCII码一个接着一个地写入一个无类型文件(不换行),但此程序
编译不通过,说是:Illegal type in Write/Writeln statement
请问我该如何更改呢?谢谢.