using System;
public class Program
{
public static void Main()
// TODO: Add your code here
int fileCount = 0;
string[] FilesToProcess;
int count = 0;
while (fileCount == 0)
count++;
if(count == 10) {break;}
try
System.Threading.Thread.Sleep(1000);
FilesToProcess = new string[1]{"test.xml"};
fileCount = FilesToProcess.Length;
if (fileCount != 0)
for (int i = 0; i < fileCount; i++)
Console.WriteLine("OK");
}
catch (System.IO.IOException ex)
Console.WriteLine("KO. IO ex");
fileCount = 0;
continue;
catch (Exception ex)
Console.WriteLine("ex");
throw ex;