Associates the name of an external file with a file variable.UnitSystemCategoryfile management routinesprocedure AssignFile(var F; FileName: string);DescriptionCall AssignFile to initialize a file variable. F is a file variable of any file type. FileName is a string-type expression or an expression of type PChar if extended syntax is enabled. After calling AssignFile, F is associated with the external file until F is closed. All further operations on the file variable F operate on the external file named by FileName.When the FileName parameter is empty, AssignFile associates F with the standard input or standard output file. If assigned an empty name, after a call to Reset (F), F refers to the standard input file, and after a call to Rewrite (F), F refers to the standard output file.Do not use AssignFile on a file variable that is already open.Note: To avoid scope conflicts, AssignFile replaces the Assign procedure that was available in previous versions of Delphi. However, for backward compatibility Assign is still available.
解决方案 »
- 调用 UrlDownloadToFile 下载
- 程序重启里发生 appcrash 错误,怎么处理啊
- 又一问题:SendMessage那种WINDOWS消息给窗体才能够使这个窗体的SIZE改变~!
- 如果让程序只运行一次?
- 冬瓜又有问题了,各位大大帮忙啊
- 如何才能把ADO连接的数据库应用程序安装在不同的目录
- 利用Idhttp不能填写账号密码登录的问题,急求~已经用了一个晚上了
- 得到正确的答案就给分(一个函数)!!
- 权限控制代码段有点小问题!请高手指点指点!!!!(解决问题,必然加分)
- 寻网络/串行口通讯程序。150分
- 请问如何使Ctrl+Alt+Del无法结束程序?
- 用ADO连接数据库时如何使用事务处理(例子)?
是跟口令文件建立联。
2 文件e:\dp\db\guanliyuan.cfg存放管理员的登陆口令。
reset(pwdfile)从第一个位置开始读
readln(pwdfile,pwdstr);读一行即读口令字符串。
接下来应该做判断:
if pwdstr=edit1.text then
showmessage('口令正确')
else
试验三次都不对就把计算机锁住。
但最好不要用文本文件存放口令因为只能骗外行。