If the files on the remote server are web accessible then you could use

<cfhttp method="get" ...>

hth

Dave

> -----Original Message-----
> From: Richard Colman [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 03, 2005 8:09 PM
> To: CF-Talk
> Subject: Reading file contents
> 
> I wish to read the contents of a file on a remote server via ftp.
> 
> The lame approach appears to be:
> 
> <cfftp action="EXISTSFILE" ... See if file is there
> 
> <cfif CFFTP.succeeded is "yes">
> 
> <cfftp connection="coda"   action="getfile" ... Get the file from the remote
> server and write it to the disk on the host server.
> 
> <cffile action = "read"  ... Read the contents of the file from the local
> server and do somethig with it.
> 
> Is there a better, faster way to do this, since I have many read operations
> in a single template.
> 
> TNX for any ideas on how to make this quicker and more efficient
> 
> Richard Colman
> 949-824-1816, 701-5330
> [EMAIL PROTECTED]
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:213709
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