Hi,
I am using a code where I can upload a file to my other ftp. This code works without problem.
What it does is to create a file named TextFile1.txt
What I want to do is also to write a string to the uploaded file (putString) ?
What is needed to add to this code to do that.
Thank you...
String putString = "WriteThisStringToFile";
try
{
FtpWebRequest requesta = (FtpWebRequest)WebRequest.Create("ftp://host.com:21/mywebsite/TextFile1.txt");
requesta.Credentials = new NetworkCredential("user", "password");
requesta.Method = WebRequestMethods.Ftp.UploadFile;
FtpWebResponse response = (FtpWebResponse)requesta.GetResponse();
response.Close();
ClientScript.RegisterStartupScript(Page.GetType(), "TestAlert", &q ...
Go to the complete details ...