通过VB Net core从网站下载CSV文件 [英] Downloading a CSV file from a web site through VB Net core
问题描述
我是这个论坛的新手。有谁知道如何从网站下载csv文件?我知道我必须使用卷曲,例如"https://....&";或GET URL。但我的语法并不合适。 谢谢。
您好Carlos307,
感谢您在此发帖。
根据您的问题,我安装了.NET Core 2.0。请尝试以下代码作为参考。
Dim myWebClient As New WebClient()
myWebClient.DownloadFile(" http://...." ;,"保存文件的路径")我测试代码。它适用于我。
有关详细信息,请参阅MSDN文章。
https://msdn.microsoft.com/en-us/library/ms144194(v=vs.110).aspx
最好的问候,
Hi, I'm new to this forum. Does anyone know how to download a csv file from a web site ? I know I have to use either a curl such as "https://...." or a GET URL. But I'm not dure of the syntax. Thanks.
Hi Carlos307,
Thank you for posting here.
According to your question, I install the .NET Core 2.0. Please try the following code for reference.
Dim myWebClient As New WebClient() myWebClient.DownloadFile("http://....", "Path to save the file")I test the code. It works well for me.
For more details, please refer to the MSDN article.
https://msdn.microsoft.com/en-us/library/ms144194(v=vs.110).aspx
Best Regards,
这篇关于通过VB Net core从网站下载CSV文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!