使用文件写入操作覆盖现有文件
我面临一个小问题
我正在写动态页面的.html
文件
<cffile action="write" file="#filename#" output="#trim(content)#" />
但问题是,如果文件已经存在,文件不会被覆盖,但最后修改的日期和时间会更新一些方法。
如果文件已经存在,我也尝试删除文件,但是.html仍显示旧内容。 但是,如果我手动删除文件,那么新生成的文件具有实际的内容。
链接地址: http://www.djcxy.com/p/74069.html上一篇: overwriting the existing file using file write action
下一篇: ColdFusion 11 cfheader not being passed correctly in IE 8