Appending files |
You can append data to a remote file using any of the Sftp.Upload methods that take a second boolean argument. Rather than replace the remote file, this will append the data that you are uploading to the remote file.
Example
[C#]
// specify file to upload
FileInfo file = new FileInfo("c:/tmp/test.txt");
// upload file appending to test2.txt file
sftp.Upload(file,"test2.txt",true);
[VB]
' specify file to upload
Dim file As FileInfo = New FileInfo("c:\tmp\test.txt")
' upload file appending to test2.txt file
sftp.Upload(file, "test2.txt", True)