Phil,

You need an absolute file path (as in C:\blah\blah.txt) to use CF File. What
you may be looking for is "CFHTTP". Try

<cfhttp url="http://www.applewoodcommunity.com/index.cfm"/>

<cfset content = cfhttp.filecontent>

-Mark

Mark A. Kruger, CFG, MSCE
www.cfwebtools.com
www.necfug.com
http://blog.mxconsulting.com


-----Original Message-----
From: Phillip Perry [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 14, 2004 10:07 AM
To: CF-Talk
Subject: cffile error confusion.


Hi,

Does anyone know why i'm getting this error? It's coming from my local
machine...

Error Occurred While Processing Request
An error occurred when performing a file operation READ on file
C:\CFusionMX\runtime\servers\default\SERVER-INF\temp\wwwroot-tmp\http://www.
applewoodcommunity.com/index.cfm.
The cause of this exception was: java.io.FileNotFoundException:
C:\CFusionMX\runtime\servers\default\SERVER-INF\temp\wwwroot-tmp\http:\www.a
pplewoodcommunity.com\index.cfm (The filename, directory name, or volume
label syntax is incorrect).

This is my cffile example..

<cffile ACTION="READ" FILE="http://www.applewoodcommunity.com/index.cfm";
VARIABLE="content">

Thanks

Phil






~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Silver Sponsor - CFDynamics
http://www.cfdynamics.com

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:187551
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to