标题:[求助]添加文件怎么不行??
取消只看楼主
BCheng112415
Rank: 1
等 级:新手上路
帖 子:22
专家分:0
注 册:2006-10-26
 问题点数:0 回复次数:0 
[求助]添加文件怎么不行??

代码如下:
private

{ Private declarations }
public
procedure assignfile(var f;filename:string);
{ Public declarations }
end;

var
Form1: TForm1;
f:textfile;

implementation

{$R *.dfm}

procedure assignfile(var f;filename:string);
var
f:textfile;
begin
if opendialog1.execute then
begin
assignfile(f,opendialog1.filename);
try
append(f);
wrintln(f);
finally
closefile(f);
end;
end;

搜索更多相关主题的帖子: 文件 
2006-11-01 15:02



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-100130-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.180644 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved