
269
DEVELOPING
COLDFUSION 9 APPLICATIONS
Developing CFML Applications
Las
t
upda
te
d 8/5/2010
Supported functions
The following file functions are supported for in-memory files:
•
FileIsEOF
•
FileReadBinary
•
Filemove
•
Filecopy
•
FileReadLine
•
FileExists
•
FileOpen
•
FileWriteln
•
FileClose
•
FileRead
•
FileDelete
•
DirectoryExists
•
FileSetLastModified
•
GetFileInfo
•
GetDirectoryFromPath
•
GetFileFromPath
•
ImageNew
•
ImageRead
•
ImageWrite
•
ImageWriteBase64
•
IsImageFile
•
IsPDFFile
•
FileSetLastModified
Example
The following syntax explains the function
FileSetLastModified()
<cftry>
<cffile action="write" file="ram:///a.txt" output="Testing the function FileSetLastModified">
<cfset date="12/12/2007">
<cfscript>
FileSetLastModified("ram:///a.txt", "#date#");
sleep(1000);
WriteOutput(#GetFileInfo("ram:///a.txt").lastmodified#);
</cfscript>
<cfcatch>
<cfset PrintException(cfcatch)>
</cfcatch>
</cftry>
<cf_expectedresults>{ts '2007-12-12 00:00:00'}
</cf_expectedresults>
Содержание COLDFUSION 9
Страница 1: ...Developing Applications ADOBE COLDFUSION 9...