Login  
Search All Forums
Dart Home | PowerTCP FTP for ActiveX | Custom Development Reply | PowerTCP FTP for ActiveX Topics | Forums   
AuthorForum: PowerTCP FTP for ActiveX
Topic: Append to file?
djdevelop

From: Milwaukee, WI USA
Posts: 6
Member Since: 09/16/02
posted May 5, 2003 3:40 PM

Hello -

I'm using the FTP tool to transfer files to a remote host. This works great. Now I've been asked to update a text log file on the destination host with the name of the transferred file after each transfer completes.

Will the Append method do this or is there another way the ftp control can do this?

Thanks!

dj
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted May 6, 2003 9:25 AM

Hi dj,
Yes, if you are adding to the end of the log file (and the server supports append), you can set the StoreType to storeAppend, and call Store on the file.
-ken
djdevelop

From: Milwaukee, WI USA
Posts: 6
Member Since: 09/16/02
posted May 12, 2003 2:12 PM

Hi Ken -

Thanks for the response. 
I'm not all that familiar with ftp, so it's a learning experience (the best kind!).
I'm going through the CommandTest sample code
and it looks like everything I need is in there.

Cheers,
dj
djdevelop

From: Milwaukee, WI USA
Posts: 6
Member Since: 09/16/02
posted May 19, 2003 2:32 PM

Does the ftp tool's Append method support some sort of 'data' option?

I simply want to append a line of text to a file on the remote host, not overwrite the entire file.

Thanks.
dj
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted May 19, 2003 7:01 PM

Hi dj,
Setting the store type to Append, and sending the data to append to the file should work.

The Store method also has a Marker parameter that can be set to start a Store at a certain position in a file to be stored.

In other words, you can use the first method above to append just new data, and the second if the new data is part of the entire file.

-ken
Reply | PowerTCP FTP for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX