Polls whatever you need.
using static PollingLibrary.Polling;
Console.WriteLine("Waiting 10 seconds for the file creation...");
try
{
var content = Poll(() => File.Exists(Filename) ? File.ReadAllText(Filename) : null);
Console.WriteLine("Here's the file contents: {0}", content);
}
catch (PollingTimeoutException)
{
Console.WriteLine("Couldn't find the file!");
}