从 .txt 文件获取目录
Getting dir from .txt file
我想从 .txt 文件中获取安装目录以便在 c# Visual Studio 2015 中使用它,我该怎么做?
我有一个更新程序,我希望他能从 .txt 文件中获取安装目录
示例:如果在 .txt 文件 "c:\install\here\" 中,那么我的更新程序将下载文件
string dir="";
using(StreamReader sr=new StreamReader("FileToGetDirFrom.txt")
{
dir=sr.ReadLine();
}
我想从 .txt 文件中获取安装目录以便在 c# Visual Studio 2015 中使用它,我该怎么做?
我有一个更新程序,我希望他能从 .txt 文件中获取安装目录 示例:如果在 .txt 文件 "c:\install\here\" 中,那么我的更新程序将下载文件
string dir="";
using(StreamReader sr=new StreamReader("FileToGetDirFrom.txt")
{
dir=sr.ReadLine();
}