hawksprite Posted September 13, 2009 Share Posted September 13, 2009 I have a program that saves every time the text is changed(Code Below) It currently saves to a local .txt file. I need it to save to a remote location (e.x. http://hawksprite.com/files/yourname/stuff.txt) But am not sure how to do it. Is there a ftp function that i can use? Much help needed, thanks. private void text_TextChanged(object sender, EventArgs e) { System.IO.StreamReader myFile2 = new System.IO.StreamReader("settin/fl.txt"); string stati = myFile2.ReadToEnd(); myFile2.Close(); if (stati == "true") stat.Text = "Fluid Save Is On."; else stat.Text = "Fluid Save Is Off."; System.IO.StreamReader myFile = new System.IO.StreamReader("settin/fl.txt"); string fls = myFile.ReadToEnd(); myFile.Close(); if (fls == "true") { save.Text = "saving...."; using (StreamWriter sw = new StreamWriter("settin/ftext.txt")) { // Add the document text to the file. sw.Write(text.Text); } save.Text = "Done"; } else { }; } Quote Link to comment Share on other sites More sharing options...
HacDan Posted September 14, 2009 Share Posted September 14, 2009 If I'm not mistaken this is .NET? Maybe? If so, try searching through MSDN for an ftp function you could use? Maybe? I've never worked with .NET, but I do know that for a Microsoft run information database, MSDN is quite amazing in finding what you're looking for in regards to a function. Quote Link to comment Share on other sites More sharing options...
hawksprite Posted September 15, 2009 Author Share Posted September 15, 2009 If I'm not mistaken this is .NET? Maybe? If so, try searching through MSDN for an ftp function you could use? Maybe? I've never worked with .NET, but I do know that for a Microsoft run information database, MSDN is quite amazing in finding what you're looking for in regards to a function. Yeah it's .NET i found what i was looking for, thank you for the tip. I'll post a link in case someone else needs it. http://www.logiclabz.com/c/ftp-file-upload...t-in-net-c.aspx Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.