}
if (!File.Exists(path))
{
using (StreamReader reader = new StreamReader(path, Encoding.UTF8))
{
url = reader.ReadToEnd();
}
}
if (!File.Exists(path))
{
using (StreamWriter sw = File.CreateText(path))
{
sw.WriteLine(stringData);
}
}
File.WriteAllText(path, nextUrl);
var directory =System.Web.Hosting.HostingEnvironment.MapPath(ConfigurationManager.AppSettings["CrawlInstanceFolder"]);
var dirInfo = new DirectoryInfo(directory);
DirectoryInfo[] dirs = aDir.GetDirectories();
FileInfo[] dirs = aDir.GetDirectories();