TScSFTPClient: Append file on server in new line
Hello,
TLDR: How do I properly append a file on server in a new line using TScSFTPClient?
I replaced my Indy-FTP-Clients with SecureBridge and I am currently working on an instance in which a textfile on a server is appended with the data of a local text file.
For FTP & FTPS this was straightforward since the TScFTPClient behaves very much like the Indy-Client.
I have almost implemented the same for SFTP but I am missing one last piece:
I load the data of the textfile into a TBytes-Buffer, use OpenFile on the file on the server with the OpenModes [foWrite, foAppend] and then WriteFile to append it.
That works perfectly fine, but I require the server file to be appended in a new line as it is the case with the Indy-Client and the TScFTPClient.
I thought I could accomplish that by also using the OpenMode "foText" since its description seemed to fit but that doesn't work.
Therefore my question: What is the correct way to append a file in a new line using TScSFTPClient?