使用C#从ftp打开并读取文件 [英] Open and read file from ftp using C#

查看:1995
本文介绍了使用C#从ftp打开并读取文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好我可以使用c#从ftp服务器打开和读取文件而无需下载文件吗?



我尝试过的方法:



我搜索互联网上的一些来源我发现只有下载内容

hi everyone Can i open and read files from ftp server using c# without downloading file?

What I have tried:

I search some source on internet I only found related to downloading things

推荐答案

不,FTP没有有一个编辑模式

下载它,修改它,再次上传。
No, FTP doesn't have an "edit mode"
Download it, revise it, upload it again.


您可以将文件放入流中而不将其保存为文件< br $>


如何:使用FTP下载文件 [ ^ ]



不确定这是您的问题是什么,或者如解决方案1中所建议的那样,您想要操作ftp上的文件服务器本身,无法完成。
You can get the file into a stream without saving it as a file

How to: Download Files with FTP[^]

Not sure if that's what your question was or, as suggested in Solution 1, you want to manipulate files on the ftp server itself, which can't be done.


你不能这样做。



你必须下载文件,对它进行操作,然后将其上传回FTP服务器。
You cannot do that.

You MUST download the file, do your operations to it and then upload it back to the FTP server.


这篇关于使用C#从ftp打开并读取文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆