internal static string ReadAllText(this IFileInfo file) { using (var reader = file.CreateReader()) { return(reader.ReadToEnd()); } }