使用C#从ftp打开并读取文件

编程入门 行业动态 更新时间:2024-10-25 00:26:52
本文介绍了使用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.

您可以将文件放入流中而不将其保存为文件 如何:使用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打开并读取文件

本文发布于:2023-11-07 22:36:38,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1567627.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文件   ftp

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!