Я получаю сообщение об ошибке, например, когда у меня есть строка, она говорит, что не может преобразовать 'byte []' в строку. И когда он у меня как var, он говорит то же самое, но выдает ошибку в данных рядом с Results.txt.
if (Lock.Contains("Mode: Data Grabber"))
{
Console.WriteLine("Loading Data Grabber 2.0! Mode = Data Grabber!\n");
Console.WriteLine("Enter the websites url!\n");
Console.WriteLine("(\n) " + "(\n)");
if (Option == Option)
{
WebClient wc = new WebClient();
string data = wc.DownloadData(Option);
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine("Downloading data from " + data);
Thread.Sleep(3000);
Console.WriteLine("\n");
if (!File.Exists(Directory.GetCurrentDirectory() + @"/Results.txt"))
{
File.Create(Directory.GetCurrentDirectory() + @"/Results.txt");
}
File.WriteAllText(Directory.GetCurrentDirectory() + @"/Results.txt", data);
Console.WriteLine("All data has been sent to the path");
}
}