给分哦!filename:='d:\mail\user.mil'; //目录已经存在
if not fileexists(filename) then
if closefile(filecreate(filename)) then
//文件创建成功后,要关闭文件句柄
begin
assignfile(ful,fileName);
reset(ful);
tul.fUserID:='aa';
tul.fUserPassword:='bb';
try
write(ful,tul);
finally
CloseFile(ful);
end;
end;
if not fileexists(filename) then
if closefile(filecreate(filename)) then
//文件创建成功后,要关闭文件句柄
begin
assignfile(ful,fileName);
reset(ful);
tul.fUserID:='aa';
tul.fUserPassword:='bb';
try
write(ful,tul);
finally
CloseFile(ful);
end;
end;
解决方案 »
- 求救,delphi7根据x=3,y=4形成一个lable控件数组,然后给控件的caption赋值。
- 请教odac的安装
- 我把一个Form窗体Dock进一个Panel。。。。。。。
- 请问如果屏避掉windows键,和Ctrl+Alt+Delete键!
- 防止用户重复保存数据,请问beforepost怎么根本没有用呢
- 信誉分被扣,何故?总得给个说法吧。
- 心情不爽,放分了
- 在ExpressQuantumGrid4.2中如何设置能在底部显示统计数据之类的东东,如合计、平均值等,同时如何汉化出现的英文。
- 统计下delphi应用开发支持的Android手机型号
- 两个问题,寻求指点
- 做为一个项目负责人应具备有什么的素质?欢迎大家讨论,有分
- 为什么我的问题总是没人应?????????????悲伤
if closefile(filecreate(filename)) then 应为
if fileclose(filecreate(filename)) then