/// <summary> /// Opens a text file, reads all the text in the file into a string, and then closes the opened stream. /// The default encoding is UTF8. /// </summary> /// <param name="this">The <see cref="IFile"/> to read.</param> /// <returns>A string containing all text in the file.</returns> public static string ReadAllText(this IFile @this) => FileExtensions.ReadAllText(@this, Encoding.UTF8);