Hi I am just getting into Coldfusion and have just purchased a sandbox, so
that I should be able to use things like cffile.

However when using the command I am getting an error message which says that
the Template is denied access to cffile. I have tried different actions in
the cffile tag and still get the same message.

Here is the code I am using.

<!---1. We want to work with the employees.xml file, --->
<cfset varFile = expandPath("employees.xml")>
<!--- which is in the same folder as this CF template --->
<!--- 2.Read Xml file into a string called MyXmlCode --->
<cffile action="read" file="#varFile#" variable="MyXmlCode">
<!--- 3. Parse the XML into an XML "object" --->
<!--- (very similar to a CFML Structure) --->
<cfset MyXml = XmlParse(MyXmlCode)>

I know that this should be very simple but am I missing something out? Any
help is appreciated.

Kind Regards

Simon Alexander
Web Developer





-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to