在另一台服务器上访问CSV文件 [英] Access a CSV file on another server

查看:79
本文介绍了在另一台服务器上访问CSV文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


实际上,我需要访问其他服务器(服务器名:XXX:XXX:XX:XX,用户名:XXXXXX,密码:XXXX),这些是我所拥有的凭据.我想从该服务器复制csv文件.我不知道如何在asp.net,c#中编写代码.我正在使用.net 3.5.请任何人帮我.

如果有人喜欢该应用程序,请将代码发送给我.

Hi,
Actually my need is i want to access another server (server name:XXX:XXX:XX:XX, Username : XXXXXX , passowrd: XXXX) these are the credentials i am having. I want to copy the csv file from that server. I have no idea how to write the code in asp.net, c#. I am using .net 3.5. Please any one help me.

If any one did like that application please send me the code. its very urgent.

推荐答案

您可以创建一个Web服务并将其首先下载到本地计算机中.然后读取文件并继续.
You can create a web service and download it into the local machine first of all. Then read the file and proceed.


如果要复制文件,首先要注意的是FTP,但没有只是服务器"之类的东西.您应该在服务器端运行FTP服务器并提供感兴趣的文件.在客户端,您可以使用类System.Net.FtpWebRequest,请参阅帮助和代码示例: http: //msdn.microsoft.com/zh-CN/library/system.net.ftpwebrequest.aspx [
If you want to copy files, first to come in mind is FTP, but there is no such thing as "just server". You should run FTP server on server side and serve up the files of interest. On client side you can use the class System.Net.FtpWebRequest, see help and code samples: http://msdn.microsoft.com/en-us/library/system.net.ftpwebrequest.aspx[^].

—SA


这篇关于在另一台服务器上访问CSV文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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