Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 C# Windows应用程序。我需要实现一个功能,将 CSV 模板下载给用户,他/她可以填写和上传。
该文件只需要在解决方案中。
谁能建议我任何解决方案?
谢谢!
如果要从特定网站下载文件,请使用 Webclient 类(添加对 System.Web 的引用)
WebClient webClient = new WebClient(); webClient.DownloadFile("http://mysite.com/myfile.csv", @"c:\Temp\myfile.csv");