I have a varaible UrlList which holds the Directory of which is supposed to be entered in a Text box, what I want though, is to check whether the given Directory file is a text file or not, so the User gets prompted to either Cancel his Actions or give in a correct file.
Code Snippet:
public static string UrlList = @"C:\Users\gbbb\Desktop\Url.txt";
private string[] _UrlRows;
and this is the method i sorta started, and then realised i Need help for
private void LoadUrls()
{
if (UrlList == System.TEXT-FILE)
_Urlrows = System.IO.File.ReadAllLines(@UrlList);
}