How to create new text file to FTP using WinSCP and write data into newly created file

Advertisement

Pvision
Joined:
Posts:
1
Location:
TN

How to create new text file to FTP using WinSCP and write data into newly created file

Hi All,

I need help in C# to
1. Connect to FTP site using WinSCP.
2. Check whether the specified named file is present on that FTP path .
3. If the mentioned named file not present then create a new text file and write one by
one string(having data in List<String>) to the newly created file.
For example, the newly crated file on FTP will be "sample.txt" and can have content like :
SampleData1
SampleData2
SampleData3
SampleData4 and so on. Each string will be on new line..
4. close the connection.

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum