C# Proceed If File Doesn't Exist : I have the following code:


	public static void readtext(string pathtoText){
		
		if(File.Exists(pathtoText))
		{	
			string[] lines = System.IO.File.ReadAllLines(pathtoText);

    		// Display the file contents by using a foreach loop.
    		foreach (string line in lines)
    		{
    			clearPath(line);
    		}
		 }
		else{
			Console.WriteLine("{0} doesn't exist, or isn't a valid text file");
		}
	}

My function reads directories from a text file and passes it to clearPath which checks if the directory exists, and if so, cleans it. My problem is that, if a directory doesn't exist,  it stops the program. 

How do I get it to the next directory even if specific directory doesn't exist? 