展开全部
program shengcheng;
const
n=9;{生成文件数,上限为9}
var
i:integer;
file1,filename:string;
begin
filename:='wendang.';
for i:=1 to n do
begin
file1:=filename+chr(48+i);
file1:=file1+'.txt';
assign(output,file1);
rewrite(output);
close(output);
end;
end.
const
n=9;{生成文件数,上限为9}
var
i:integer;
file1,filename:string;
begin
filename:='wendang.';
for i:=1 to n do
begin
file1:=filename+chr(48+i);
file1:=file1+'.txt';
assign(output,file1);
rewrite(output);
close(output);
end;
end.
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询