[英]How to get the path of a CSV file inside Solution Exporer?
让我们假设您在目录TestFolder中有一个名为test.txt的文件
您可以像这样访问它:
string filePath = AppDomain.CurrentDomain.BaseDirectory + @"\TestFolder\test.txt";
string[] lines = System.IO.File.ReadAllLines(filepath);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.