assign(f,str)它返回什么类型啊?如何判断文件的有和无呢?
解决方案 »
- 关于word文档中的表格合并问题??
- Delphi有没有类似VB的IsNumeric()这样的函数,可以检验一个串是否为数字串?
- 才买的电脑,启动很慢,重装过也没用,昨天拆了,但找不出原因,不知何故?请懂行的指点一二!谢谢!!!
- 关于DBEDIT控件数据提交问题
- 程序做好了,放在哪个网上供人下载比较好呢?
- 怎样判断字段的数据类型?
- ***急!!!急!!!急!!!怎么使一个有关SQL SERVER的应用程序能在98下用?
- 做报表在做统计时可以和查询共用一个sql语句么?
- 小问题~~快来抢分!!!!!
- 来拿高分吧。。。
- FreeCommunication 开始试运营阶段,欢迎大家多多支持。(面对企业内部应用的 FreeCommunication 系统,开始免费注册)
- dbgird中选择多条记录,如何批量更新某一字段值?
是assignfile 吧?procedure AssignFile(var F; FileName: string);
Call AssignFile to initialize a file variable in Delphi code. 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 early versions of the Delphi product. However, for backward compatibility Assign is still available.
如何判断文件的有和无呢?
function FileExists(const FileName: string): Boolean;