AI OnAI Off
UnifiedDirectory dir = UnifiedFileSystem.GetDirectory("/upload");
UnifiedFile file = dir.CreateFile("Myfile.txt");
Stream s = file.OpenWrite();
StreamWriter w = new StreamWriter(s);
w.WriteLine("Hello world!");
w.Close();
s.Close();
To enable FTP functionality in .NET applications, try the FtpSupport.dll:
http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=766E4992-5E9E-46E9-85CA-EF0F0DCECE72