RosettaCodeData/Task/File-size/ColdFusion/file-size.cfm

10 lines
233 B
Text
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
<cfscript>
localFile = getFileInfo(expandpath("input.txt"));
rootFile = getFileInfo("/input.txt");
</cfscript>
<cfoutput>
Size of input.txt is #localFile.size# bytes.
Size of /input.txt is #rootFile.size# bytes.
</cfoutput>