The OS will raise an exception if two processes try to access a file at 
the same time, which in turn will cause CF to throw an error.

As a general rule, always use error handling when accessing files from 
any computer language.

<cftry>
   <cffile ...>
<cfcatch>Couldn't access file...</cfcatch>
</cftry>

jon

Webmaster wrote:
> Do you need to lock a cffile append.  I have a site that logs to a file
> every time a order is placed.  Has anyone run into a problem if two threads
> try to write at the same time?
> 
> 

______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to