基本上,我想使用以下代码编辑 C# 文件:
var file = new StreamReader("ftp://xxx.xxx.x.x/xxx.txt"); //[ip address/file]
label1.Text = file.ReadLine();
file.Close();
var fw = new StreamWriter("ftp://xxx.xxx.x.x/xxx.txt"); //[ip address/file]
fw.WriteLine(textBox1.Text);
fw.Close();
但是它不起作用,我该怎么做呢?
最佳答案
关于c# - 在 C# 中通过 FTP 编辑文本文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4987252/