/// <summary> /// Creates a <see cref="StreamReader"/> with UTF8 encoding that reads from an existing text file. /// </summary> /// <returns>A new <see cref="StreamReader"/> with UTF8 encoding.</returns> /// <exception cref="UnauthorizedAccessException">The caller does not have the required permission.</exception> /// <exception cref="FileNotFoundException">The file is not found.</exception> /// <exception cref="DirectoryNotFoundException">The specified path is invalid (for example, it is on an unmapped drive.</exception> /// <exception cref="IOException">An I/O error occurred while creating the file.</exception> public StreamReader OpenText() { return(LongPathFile.OpenText(this.NormalizedPath)); }