开发者

Using System.IO namespace for FTP operations

I have a few syncing routines that I'd like to use for FTP uploads. However they all use th开发者_JS百科e functions in the IO namespace, and I was wondering whether I could use it to access distant files stored on an FTP server.

Maybe should I mount the distant server as a network drive? Is there a way to do this programatically?

Thanks,

CFP.


FTP functions in .NET are under the System.Net namespace. You want the FtpWebRequest object.

See this article for more information: http://msdn.microsoft.com/en-us/library/system.net.ftpwebrequest.aspx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜